SAP Nota Fiscal Eletrônica 10.0 Security Guide
SAP Nota Fiscal Eletrônica 10.0 Security Guide
2016-11-14
1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
5 Authorizations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Caution
This guide does not replace the administration or operation guides that are available for productive operations.
This document is not included as part of the Installation Guides, Configuration Guides, Technical Operation
Manuals, or Upgrade Guides. Such guides are only relevant for a certain phase of the software lifecycle, whereby
the Security Guides provide information that is relevant for all lifecycle phases.
With the increasing use of distributed systems and the Internet for managing business data, the demands on
security are also on the rise. When using a distributed system, you need to be sure that your data and processes
support your business needs without allowing unauthorized access to critical information. User errors,
negligence, or attempted manipulation on your system should not result in loss of information or processing time.
These demands on security apply likewise to SAP Nota Fiscal Eletrnica 10.0. We provide this Security Guide to
assist you in securing SAP Nota Fiscal Eletrnica.
The Security Guide provides an overview of the security-relevant information that applies to SAP Nota Fiscal
Eletrnica. As SAP Nota Fiscal Eletrnica 10.0 is based on and runs SAP NetWeaver technology, read the Security
Guide for your SAP NetWeaver release. For example, http://help.sap.com/nw702 Security Information
Security Guide or http://help.sap.com/nw731 Security Information Security Guide . All Security Guides
published by SAP are available on SAP Service Marketplace at http://service.sap.com/securityguide .
SAP Nota Fiscal Eletrnica is built on SAP NetWeaver. Therefore, the corresponding Security Guide of this
application also applies to SAP Nota Fiscal Eletrnica. Since SAP Nota Fiscal Eletrnica 10.0 is based on and runs
SAP NetWeaver technology, read the Security Guide for SAP NetWeaver at http://help.sap.com/nw702
Security Information Security Guide or http://help.sap.com/nw703 Security Information Security
Guide . Pay particular attention to the most relevant sections or specific restrictions as indicated in the table
below.
SAP NetWeaver Application Server ABAP Security Guide for Network Security for SAP Web AS ABAP
SAP NetWeaver 7.0 EHP2 or EHP3. Security for the RFC Connections under Protecting your
Productive System (Change and Transport System)
For security issues of the core application of SAP Nota Fiscal
Authentication and Single Sign-On under Authentication
Eletrnica refer to the ABAP Add-On under
SAP NetWeaver Process Integration Security Guide for your Communication under Technical System Landscape
SAP PI version containing the relevant Information for SAP Network and Communication Security
NetWeaver PI under: http://help.sap.com/netweaver. Adapter-specific Security Configuration, for example for
the SOAP adapter.
For a complete list of the available SAP Security Guides, see http://service.sap.com/securityguide on the SAP
Service Marketplace.
The most important SAP Notes that apply to the security of SAP Nota Fiscal Eletrnica are shown in the table
below.
1492736 Delta Upgrade to SLL-NFE with SAP Net Add-on upgrade to SAP NetWeaver Re
Weaver 7.02 lease 702 with SLL-NFE 900.
1492737 Support Packages for SLL-NFE 900 Information on Add-on Support Pack
ages for SLL-NFE 900.
In addition, you can find a list of security-relevant SAP Hot News and SAP Notes on the SAP Service Marketplace
at http://support.sap.com/securitynotes .
Additional Information
For more information about specific topics, see the Quick Links as shown in the table below.
Security http://sdn.sap.com/irj/sdn/security
http://support.sap.com/security
https://support.sap.com/securitynotes
https://service.sap.com/network
The figure below shows an example of the technical system landscape for SAP Nota Fiscal Eletrnica.
For more information about the technical system landscape, see the resources listed in the table below.
Installation
SAP Nota Fiscal Eletrnica uses the user management and authentication mechanisms provided with the SAP
NetWeaver platform, in particular the application server ABAP. Therefore, the security recommendations and
guidelines for user administration and authentication described in the SAP NetWeaver Application Server ABAP
Security Guide also apply to SAP Nota Fiscal Eletrnica. Read the Security Guide for SAP NetWeaver at http://
help.sap.com/nw702 Security Information Security Guide Security Guide for SAP NetWeaver According to
Usage Type SAP NetWeaver Application Server ABAP Security Guide or http://help.sap.com/nw703
Security Information Security Guide Security Guide for SAP NetWeaver According to Usage Type SAP
NetWeaver Application Server ABAP Security Guide .
In addition to these guidelines, we include information about user administration and authentication that
specifically applies to SAP Nota Fiscal Eletrnica:
User Management
This topic lists the tools to use for user management, the types of users required, and the standard users that
are delivered with SAP Nota Fiscal Eletrnica.
Integration Into Single Sign-On Environments
This topic describes how SAP Nota Fiscal Eletrnica supports Single Sign-On mechanisms.
User management for SAP Nota Fiscal Eletrnica uses the mechanisms provided by the SAP NetWeaver AS
ABAP, for example, tools, user types, and password policies. For an overview of how these mechanisms apply for
SAP Nota Fiscal Eletrnica, see the sections below.
The table below shows the tools to use for user management and user administration with SAP Nota Fiscal
Eletrnica.
User and role maintenance with SAP For more information, see Users and Roles must be created and assigned to
NetWeaver AS ABAP (Transactions Roles (BC-SEC-USR) [SAP Library]. the user
SU01, PFCG)
It is necessary to specify different security policies for different types of users. For example, your policy may
specify that individual users who perform tasks interactively have to change their passwords on a regular basis,
but not those users under which background processing jobs run.
The user types that are required for SAP Nota Fiscal Eletrnica include:
Individual users:
Dialog Users:
NF-e outbound operations user monitors the outgoing NF-es using the NF-e monitor, NF-e batch
monitor, NF-e service status monitor, and the corresponding event monitors.
CT-e outbound operations user monitors the outgoing CT-es using the CT-e monitor, CT-e batch
monitor, CT-e service status monitor, and the corresponding event monitors.
MDF-e outbound operations user monitors the outgoing MDF-es using the MDF-e monitor, MDF-e
batch monitor, MDF-e service status monitor, and the corresponding event monitors.
NF-e/CT-e/MDF-e administration user for configuring the NFE solution for outgoing NF-es/CT-es/
MDF-es & incoming NF-es/CT-es.
Inbound fiscal user to monitor and control the incoming NF-es/CT-es using the fiscal workplace and
the Receiver Acknowledgment workplaces (NF-e List and Download, Receiver Acknowledgment
events).
Inbound logistics user to control the logistic steps of the incoming NF-es using the logistics
workplace.
Inbound DF-e Gate Monitor user to control the incoming goods and their corresponding electronic
documents (DF-es).
Technical Users:
RFC user for receiving calls from the ERP backend.
RFC user for receiving calls from the PI system.
Background users are used for running the necessary batch jobs.
For more information about these user types, see User Types in the SAP NetWeaver Application Server ABAP
Security Guide.
Standard Users
There are no standard users delivered with SAP Nota Fiscal Eletrnica (In addition to the NetWeaver standard
users). For more information about these standard users, see the SAP NetWeaver Security Guide at http://
help.sap.com/nw702 Security Information Security Guide (Open the Security Guide) Security Guide for SAP
NetWeaver According to Usage Types SAP NetWeaver Application Server ABAP Security Guide User
Authentication Protecting Standard Users or http://help.sap.com/nw703 Security Information Security
Guide (Open the Security Guide) Security Guide for SAP NetWeaver According to Usage Types SAP
NetWeaver Application Server ABAP Security Guide User Authentication Protecting Standard Users .
SAP Nota Fiscal Eletrnica supports the Single Sign-On (SSO) mechanisms provided by SAP NetWeaver AS
ABAP. Therefore, the security recommendations and guidelines for user administration and authentication
described in the SAP NetWeaver Application Server ABAP Security Guide also apply to SAP Nota Fiscal Eletrnica.
You can find more information about the available authentication mechanisms under http://help.sap.com/nw702
Security Information Security Guide (Open the Security Guide) Security Guide for SAP NetWeaver
According to Usage Type SAP NetWeaver Application Server ABAP Security Guide User Authentication or
http://help.sap.com/nw703 Security Information Security Guide (Open the Security Guide) Security Guide
for SAP NetWeaver According to Usage Type SAP NetWeaver Application Server ABAP Security Guide User
Authentication .
SAP Nota Fiscal Eletrnica uses the authorizations provided by SAP NetWeaver AS ABAP. Therefore, the
recommendations and guidelines for authorizations described in the SAP NetWeaver Application Server ABAP
Security Guide also apply to SAP Nota Fiscal Eletrnica.
You can find more information about the authorization concept under http://help.sap.com/nw702 Security
Information Security Guide (Open the Security Guide) Security Guide for SAP NetWeaver According to Usage
Types SAP NetWeaver Application Server ABAP Security Guide SAP Authorization Concept or http://
help.sap.com/nw703 Security Information Security Guide (Open the Security Guide) Security Guide for SAP
NetWeaver According to Usage Types SAP NetWeaver Application Server ABAP Security Guide SAP
Authorization Concept .
The SAP NetWeaver authorization concept is based on assigning authorizations to users based on roles. For role
maintenance, use the profile generator (transaction PFCG) on the AS ABAP.
Customizing
If you want to access the Customizing of SAP NFE, your user role needs to be assigned to authorization group
XNFE with authorization object S_TABU_DIS.
Standard Roles
The table below shows the standard roles that are used by SAP Nota Fiscal Eletrnica.
NF-e Fiscal /XNFE/ NF-e/CT-e Inbound This is the role for the inbound fiscal user. The authoriza
Clerk NFE_IN_FISCAL tions can be restricted with regard to tax numbers and
process type.
NF-e Fiscal /XNFE/ NF-e/CT-e Inbound This is the role for the inbound fiscal user. This is a re
Workplace Dis NFE_IN_FISCAL_DIS stricted role that only allows to display the NF-e/CT-e.
play only PLAY The authorizations can be further restricted with regard to
tax numbers and process type.
NF-e Fiscal /XNFE/ NF-e/CT-e Inbound This is the role for the inbound fiscal user. This is an ex
Clerk Extended NFE_IN_FISCAL_EX tended role that also allows extended control over the
TENDED process flow.
NF-e List and /XNFE/ NF-e Inbound This is the role for the inbound fiscal user. This user ob
Download NFE_IN_RCVRACK serves the documents issued for one of your CNPJs and
downloads them from the National Environment. The au
thorizations can be restricted with regard to tax numbers.
NF-e List and /XNFE/ NF-e Inbound This is the role for the inbound fiscal user. This is a re
Download Dis NFE_IN_RCVRACK_DI stricted role that only allows to display the NF-es issued
play only SPLAY for one of your CNPJs. The authorizations can be further
restricted with regard to tax numbers.
NF-e Logistics /XNFE/ NF-e Inbound This is the role for the inbound logistics user. The authori
Clerk NFE_IN_LOGISTIC zations can be restricted with regard to tax numbers and
process type.
NF-e Logistics /XNFE/ NF-e Inbound This is the role for the inbound logistics user. This is a re
Clerk Display NFE_IN_LOGIS stricted role that only allows to display the NF-e. The au
only TIC_DISPLAY thorizations can be further restricted with regard to tax
numbers and process type.
Denial of Ac /XNFE/NFE_IN_DENY NF-e Inbound This is the role for the inbound fiscal user. This is an ex
ceptance tended role that allows the user to deny the processing of
an NF-e. The authorizations can be restricted with regard
to own tax numbers.
NFE Reporting /XNFE/ NF-e Inbound This is the role for the inbound reporting user. The author
NFE_IN_REPORTS izations can be restricted with regard to own tax number.
NFE Gate Con /XNFE/NFE_IN_GATE NF-e/CT-e Inbound This is the role for the gate control user. The authoriza
trol KEEPER tions can be restricted with regard to own tax numbers.
Outbound NF-e /XNFE/TAXNUMBER NF-e Outbound This is the role for NF-e outbound operations user. The
Monitor authorizations can be restricted with regard to the own
tax number.
Outbound CT-e /XNFE/CTE_OUT CT-e Outbound This is the role for CT-e outbound operations user. The
Monitor authorizations can be restricted with regard to the own
tax number.
Outbound CT-e /XNFE/ CT-e Outbound This is the role for CT-e outbound operations user. This is
Monitor Display CTE_OUT_DISPLAY a restricted role that only allows to display the CT-e. The
only authorizations can be further restricted with regard to
own tax number.
Outbound /XNFE/MFE_OUT MDF-e Outbound This is the role for MDF-e outbound operations user. The
MDF-e Monitor authorizations can be restricted with regard to the own
tax number.
Outbound /XNFE/ MDF-e Outbound This is the role for MDF-e outbound operations user. This
MDF-e Monitor MFE_OUT_DISPLAY is a restricted role that only allows to display the MDF-e.
Display only The authorizations can be further restricted with regard to
own tax number.
RFC user from /XNFE/PRXYSERV All scenarios Communication from PI System to NFE System
PI to NFE
RFC user from /XNFE/RFCSERV All scenarios Communication from ERP Back-End to NFE System
ERP to NFE
Table 9:
Note
If a CT-e related to a received event is not in the sys
tem yet, no authority check will be executed for the
event and the event/s will be processed
Note
If the related CT-e for a received event is not in the sys
tem yet, no authority check will be executed and the
events are displayed.
Your network infrastructure is important in protecting your system. Your network needs to support the
communication necessary for your business and your needs without allowing unauthorized access. A well-defined
network topology can eliminate many security threats based on software flaws (at both the operating system and
application level) or network attacks such as eavesdropping. If users cannot log on to your application or database
servers at the operating system or database layer, then there is no way for intruders to compromise the machines
and gain access to the backend systems database or files. Additionally, if users are not able to connect to the
server LAN (local area network), they cannot exploit well-known bugs and security holes in network services on
the server machines.
The network topology for SAP Nota Fiscal Eletrnica is based on the topology used by the SAP NetWeaver
platform. Therefore, the security guidelines and recommendations described in the SAP NetWeaver Security
Guide also apply to SAP Nota Fiscal Eletrnica. You find more information under http://help.sap.com/nw702
Security Information Security Guide (Open the Security Guide) or http://help.sap.com/nw731 Security
Information Security Guide (Open the Security Guide) . Details that specifically apply to SAP Nota Fiscal
Eletrnica are described in the following topics:
For more information, see the following sections in the SAP NetWeaver Security Guide:
The table below shows the communication paths used by SAP Nota Fiscal Eletrnica, the protocol used for the
connection, and the type of data transferred.
Communication Path Protocol Used Type of Data Transferred Data Requiring Special Pro
tection
DIAG and RFC connections can be protected using Secure Network Communications (SNC). HTTP connections
are protected using the Secure Sockets Layer (SSL) protocol.
Note
For more information, see Using the Secure Sockets Layer Protocol with the AS ABAP the SAP NetWeaver
Security Guide (in Network Security for SAPWeb AS ABAP).
Connecting to SEFAZ
Note
For details how to import the necessary certificate, see SAP Note 1524196 .
There is no application specific information necessary. For the Web Service communication to SEFAZ, refer to the
PI Security Guide.
SAP Nota Fiscal Eletrnica is based on SAP NetWeaver. Therefore, the relevant Security Guides for SAP
NetWeaver are also relevant for SAP Nota Fiscal Eletrnica. For more information about network security of the
underlying SAP NetWeaver, see the SAP NetWeaver Security Guide at http://help.sap.com/nw702 Security
Information Security Guide (Open the Security Guide) SAP NetWeaver Application Server ABAP Security Guide
Network infastructure
Network Services
This topic contains information about services and ports used by SAP NetWeaver
Network infastructure
Using Firewall Systems for Access Control
This topic contains information about firewall settings
Network infastructure
Using Multiple Network Zones
This topic contains information about the network segments in which individual parts of your application
are to be set up.
The data for the system is stored in the database of the SAP system
In Archive
Note
The application data for SAP Nota Fiscal Eletrnica does not require special protection
The following sections in the NetWeaver Security Guide are relevant for all enterprise services delivered with SAP
Nota Fiscal Eletrnica:
http://service.sap.com/securityguide :
For more information about special security requirements for Web services, see the SAP NetWeaver
Documentation on the SAP Help Portal at http://help.sap.com SAP NetWeaver SAP NetWeaver 7.0 including
Enhancement Package 2 or 3 SAP Library SAP NetWeaver SAP NetWeaver Developers Guide
Fundamentals Using Java Core Development Tasks Providing and Consuming Web Services Web Service
Toolset Web Services Security .
Coding Samples
Any software coding and/or code lines / strings ("Code") included in this documentation are only examples and are not intended to be used in a productive system
environment. The Code is only intended to better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and
completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, unless damages were caused by SAP
intentionally or by SAP's gross negligence.
Accessibility
The information contained in the SAP documentation represents SAP's current view of accessibility criteria as of the date of publication; it is in no way intended to be a
binding guideline on how to ensure accessibility of software products. SAP in particular disclaims any liability in relation to this document. This disclaimer, however, does
not apply in cases of wilful misconduct or gross negligence of SAP. Furthermore, this document does not result in any direct or indirect contractual obligations of SAP.
Gender-Neutral Language
As far as possible, SAP documentation is gender neutral. Depending on the context, the reader is addressed directly with "you", or a gender-neutral noun (such as "sales
person" or "working days") is used. If when referring to members of both sexes, however, the third-person singular cannot be avoided or a gender-neutral noun does not
exist, SAP reserves the right to use the masculine form of the noun and pronoun. This is to ensure that the documentation remains comprehensible.
Internet Hyperlinks
The SAP documentation may contain hyperlinks to the Internet. These hyperlinks are intended to serve as a hint about where to find related information. SAP does not
warrant the availability and correctness of this related information or the ability of this information to serve a particular purpose. SAP shall not be liable for any damages
caused by the use of related information unless damages have been caused by SAP's gross negligence or willful misconduct. All links are categorized for transparency
(see: http://help.sap.com/disclaimer).