Mainframe code security
COBOL static code analysis
Scan COBOL programs and copybooks for hardcoded credentials, weak cryptography, unsafe subprogram calls and leaks of personal or system data. COBOL goes through the same static analysis, severity scale and report as Java and Python.
In short
DerScanner static application security testing (SAST) scans COBOL source code: .cbl and .cob programs and .cpy copybooks. Every COBOL rule is published in the DerScanner vulnerability database with its CWE identifiers.
The rules target hardcoded and empty passwords, special accounts, weak hashing and encryption, unsafe subprogram calls, unvalidated ACCEPT input, plain HTTP, and leaks of personal or system data. Findings land in the same list, severity scale and report as modern services.
DerScanner installs on-premise and in air-gapped networks, so mainframe code does not have to leave the perimeter. For COBOL it provides SAST from source; binary analysis, code quality and SCA cover other languages.
What the COBOL rules check
The COBOL rules look for the flaws that matter in long-lived business code: credentials in the source, input taken without checks, and data that leaves the program unprotected. Each rule links to its description, CWE identifiers and fix recommendation.
Credentials and access
Passwords written into the code, empty passwords, special accounts, and subprograms called through a name an attacker can influence.
- mediumHardcoded password
- criticalEmpty password
- mediumUndocumented feature: special account
- mediumUnsafe subprogram access control
Input and data exposure
ACCEPT statements, which store outside data with no editing or error checking, personal data handled without protection, error details that reveal the system, and plain HTTP.
- mediumACCEPT keyword using
- mediumPrivacy violation
- mediumInformation leak
- mediumExternal information leak
- mediumHTTP usage
Cryptography
Obsolete hashing and encryption algorithms that no longer protect valuable data.
- criticalWeak hashing algorithm
- criticalWeak encryption algorithm
Undocumented features
Network activity that the program documentation does not explain.
Where COBOL code runs
COBOL carries the business logic of payments, policies and ledgers, often on mainframes in banks, insurers and public agencies. That code usually cannot leave the data center, so the scanner has to come to it.
DerScanner installs on internal servers, including air-gapped networks, and reads the source as it is, from a repository or an archive. No conversion or migration of the source is needed.
Read: SAST for Delphi, COBOL and ABAP, a vendor coverage reality check
Before and after a migration
Scanning can start before any modernization decision and can run alongside a migration. DerScanner scans the COBOL source and the Java or C# that replaces it in one platform, which gives a before and after picture of the same code base.
A rewritten system brings new vulnerability classes and new open-source dependencies. SAST and SCA for the target languages run in the same platform as the COBOL scan.
Read: COBOL modernization by AI and what it means for security
Questions buyers ask about COBOL static code analysis
DerScanner SAST scans COBOL programs (.cbl, .cob) and copybooks (.cpy) with rules from its vulnerability database. They cover hardcoded and empty passwords, special accounts, unsafe subprogram calls, unvalidated ACCEPT input, plain HTTP, weak hashing and encryption, and leaks of personal or system data.
ACCEPT takes data from outside the program, from an input device or system data items, and does no editing or error checking of what it stores. The rule ACCEPT keyword using marks these places so that the input can be validated.
Yes. DerScanner installs on-premise, including fully air-gapped networks. Source code, scan results and reports stay on internal servers, which matters for mainframe and core banking code that policy does not allow outside the perimeter.
Scanning can start before any modernization decision and can run alongside a migration. DerScanner scans the COBOL source and the new Java code in one platform, so the team gets a before and after picture of the same code base.
No. COBOL is analyzed from source. Binary analysis covers .dll and .exe files for C and C++, .class files for Java, .apk for Android and .ipa for iOS applications.
Every COBOL rule lists its CWE identifiers. Most also map to OWASP Top 10, OWASP ASVS and PCI DSS 4.0, and some to HIPAA. The mapping is shown on each rule page in the vulnerability database.
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 COBOL 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

