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.

Fix advice
Every finding with severity, fix recommendation and code location
.cbl .cob .cpy
COBOL programs and copybooks scanned from source
On-premise
or air-gapped: mainframe source stays inside the perimeter

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.

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.

Cryptography

Obsolete hashing and encryption algorithms that no longer protect valuable data.

Undocumented features

Network activity that the program documentation does not explain.

See all COBOL rules in the vulnerability database

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

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

Get Started

Make Your Applications
Secure Today

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

dashboard