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.

Fix advice
Every finding with severity, fix recommendation and code location
43
languages in one platform, with one severity scale and one report format
On-premise
or air-gapped: ABAP source and findings stay on internal servers

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.

Secrets and cryptography

Passwords and keys written into the code, weak hashing and random numbers, and unsafe SSL settings.

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.

See all ABAP rules in the vulnerability database

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.

Read: SAP ABAP code security with SAST static analysis

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.

Read: secure development for SAP applications at a retailer

Questions buyers ask about ABAP static code analysis

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

Get Started

Make Your Applications
Secure Today

Sign up for a personalized demo to see
how DerScanner can meet your Application Security needs

dashboard