SAP ABAP code security
ABAP static code analysis
Find security flaws in custom SAP ABAP code: missing authorization checks, cross-client data access, SQL and code injection, hardcoded secrets and backdoors. ABAP findings land in the same platform and report as the rest of your applications.
In short
DerScanner is a static application security testing (SAST) tool that scans custom ABAP code. Its ABAP rules are published in the DerScanner vulnerability database, and most of them map to CWE, OWASP Top 10 and PCI DSS 4.0.
ABAP code is exported from the SAP system as text files, for example with abapGit, SE38 or SE80, and uploaded as an archive. Each finding comes with a severity, a description, a fix recommendation and the code location.
DerScanner runs on-premise, in air-gapped networks or in the cloud. For ABAP it provides security analysis (SAST); code quality checks, SCA and binary analysis cover other languages.
What the ABAP rules check
The ABAP rules follow how SAP systems are attacked: who may run a program, which client a query reads, and what code is generated at runtime. Each rule links to its description, CWE identifiers and fix recommendation.
Authorization and SAP data access
A missing or unchecked AUTHORITY-CHECK, Open SQL that reads other clients with CLIENT SPECIFIED or USING CLIENT, and direct UPDATE statements, which do not run authorization checks.
Injection
SQL injection, operating system command injection, and dynamic programs built from external input with statements such as INSERT REPORT.
- mediumSQL injection
- mediumCommand injection
- mediumInjection code
- mediumInsecure function
Secrets and cryptography
Passwords and keys written into the code, weak hashing and random numbers, and unsafe SSL settings.
- mediumHardcoded password
- criticalEmpty password
- mediumUnsafe password settings
- criticalHardcoded encryption key
- criticalEmpty encryption key
- criticalWeak hashing algorithm
- criticalHMAC using weak hashing algorithm
- mediumWeak random number generator
- mediumWeak seed of random number generator
- mediumUnsafe SSL configuration
Backdoors and undocumented features
Special accounts, hidden functionality and unexpected network activity in custom code.
Web sessions and reliability
Cookie flags, FOR ALL ENTRIES on an empty internal table, division by zero, unchecked return values and obsolete constructs.
Where ABAP code runs
ABAP runs inside SAP systems such as SAP S/4HANA and SAP ECC, on the SAP NetWeaver Application Server. Custom reports, interfaces and enhancements written in ABAP handle financial records, customer information and supply chain data.
A flaw in that code reaches finance and master data directly, which is why authorization and client separation lead the rule list.
How ABAP code reaches the scanner
ABAP lives in the SAP system rather than in a Git repository. Export programs, function modules and classes as text files with abapGit, SE38 (ABAP Editor) or SE80 (Object Navigator), pack them into an archive and upload it to a static analysis project.
For regular scans the export can run on a schedule. A retailer case on the DerScanner blog describes this setup: a scheduled export sent code from SAP systems for daily analysis.
Questions buyers ask about ABAP static code analysis
DerScanner SAST scans custom ABAP code with rules from its vulnerability database. They cover missing authorization checks, cross-client data access, SQL injection, operating system command injection, dynamic code injection, hardcoded passwords and keys, weak cryptography, and backdoor patterns such as special accounts. Each finding has a severity, a description, a fix recommendation and a code location.
Yes. The rule Insufficient authorization check flags a missing AUTHORITY-CHECK or one whose result is not handled. The rule Unsafe database clients access control flags Open SQL that switches off automatic client handling with CLIENT SPECIFIED or reads another client with USING CLIENT, and Native SQL that does not restrict the client.
Export programs, function modules and classes from the SAP system as text files with abapGit, SE38 or SE80, pack them into an archive and upload it to a DerScanner static analysis project. The export can also run on a schedule for regular scans.
Most ABAP rules list CWE identifiers and map to OWASP Top 10, OWASP ASVS and PCI DSS 4.0; some also map to HIPAA. The mapping is shown on each rule page in the vulnerability database.
Yes. DerScanner installs on-premise, including fully air-gapped networks, or runs in the cloud. Source code, scan results and reports stay on internal servers in an on-premise installation.
No. For ABAP, DerScanner provides security analysis (SAST). Code quality analysis covers JavaScript, TypeScript, Delphi and Pascal. Some ABAP rules do check reliability: potential division by zero, unchecked return values, loops with an unreachable exit condition, and FOR ALL ENTRIES on an empty internal table.
Yes. Request a free pilot on this page: the team gives you access and helps with the first scan. The pilot works in the cloud and on-premise.
Static analysis for other enterprise languages
Try DerScanner on your own code, free
Scan your own ABAP code and see what DerScanner finds in it.
Request a free pilot. We give you access and help with the first scan. It works in the cloud and on-premise.
Want to describe your project first? Take the 2-minute PoC survey
Make Your Applications
Secure Today
Sign up for a personalized demo to see
how DerScanner can meet your Application Security needs

