Visual Basic code security
Visual Basic 6 and VBA static code analysis
Find security flaws in Visual Basic 6 and VBA code: SQL and command injection, path manipulation, hardcoded passwords and keys, weak cryptography, information leaks and backdoors. Visual Basic 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 Visual Basic 6 and VBA code. Each dialect has its own rules in the DerScanner vulnerability database, and most of them map to CWE, OWASP Top 10 and PCI DSS 4.0.
The rules cover SQL and command injection, path and resource manipulation, hardcoded and empty passwords and keys, weak cryptography, information leaks and undocumented features such as special accounts and time bombs. 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. VBScript and VB.NET are also supported; SCA covers VB.NET only.
What the Visual Basic rules check
Visual Basic 6 and VBA share most rule names, so each check below links to the rule page for each dialect that has it, with its own severity.
Injection and input handling
SQL and command injection, path and resource manipulation, header and setting manipulation, cross-site scripting and unsafe file upload.
- SQL injection Visual Basic 6 critical VBA low
- Command injection Visual Basic 6 medium VBA medium
- Path manipulation Visual Basic 6 critical
- Resource injection Visual Basic 6 medium
- HTTP header manipulation Visual Basic 6 medium
- Setting manipulation Visual Basic 6 medium
- XSS due to insufficient validation Visual Basic 6 medium
- Trust boundary violation Visual Basic 6 medium
- Unsafe file upload Visual Basic 6 low
Secrets and cryptography
Passwords and keys written into the code, empty or short keys, unsafe padding, and weak encryption, hashing and random numbers.
- Hardcoded password Visual Basic 6 medium VBA medium
- Empty password Visual Basic 6 critical VBA critical
- Null password Visual Basic 6 low VBA low
- Hardcoded encryption key VBA critical
- Empty encryption key VBA critical
- Null encryption key VBA medium
- Insufficient encryption key length VBA medium
- Unsafe padding Visual Basic 6 critical VBA critical
- Weak encryption algorithm Visual Basic 6 critical VBA critical
- Weak hashing algorithm Visual Basic 6 critical VBA critical
- Weak random number generator Visual Basic 6 medium VBA medium
- Weak seed of random number generator Visual Basic 6 medium VBA medium
Backdoors and undocumented features
Special accounts, hidden functionality, time bombs and unexpected network activity.
- Undocumented feature: special account Visual Basic 6 medium VBA medium
- Undocumented feature: hidden functionality Visual Basic 6 low VBA low
- Undocumented feature: time bomb Visual Basic 6 medium VBA medium
- Undocumented feature: network activity Visual Basic 6 low VBA low
Information leaks, web and data access
External and internal information leaks, plain HTTP, cookie scope and transport, cross-origin policy and database access control.
- External information leak Visual Basic 6 medium VBA medium
- Internal information leak Visual Basic 6 medium VBA medium
- HTTP usage Visual Basic 6 medium VBA medium
- Cookie: broad path Visual Basic 6 medium VBA medium
- Cookie: broad domain VBA low
- Cookie: transmission not over SSL VBA medium
- Unsafe cross-origin resource sharing (CORS) policy Visual Basic 6 medium
- Unsafe database access control Visual Basic 6 low VBA low
Other checks
- Error bad handling Visual Basic 6 low
- Obsolete construct Visual Basic 6 low
See all rules in the vulnerability database for Visual Basic 6
Where Visual Basic code runs
Visual Basic 6 and VBA code often outlives its authors: desktop line-of-business systems in one case, office documents and spreadsheets used for reporting, pricing and data exchange in the other.
Both often connect to databases and file shares with credentials kept in the code, so injection and hardcoded secrets lead the rule list.
One scan with the rest of your code
Visual Basic 6 and VBA, as well as VBScript and VB.NET, are among the 43 languages in DerScanner. Legacy Visual Basic code and newer services can be scanned in the same platform, with one severity scale and one report format.
Scans run from the web interface, the CLI or a CI/CD integration, and the reports cover standards such as OWASP Top 10, PCI DSS and CWE.
Questions buyers ask about Visual Basic 6 and VBA static code analysis
DerScanner SAST scans Visual Basic 6 and VBA code with rules from its vulnerability database. They cover SQL and command injection, path manipulation, hardcoded passwords and keys, weak cryptography, information leaks and backdoor patterns such as special accounts and time bombs. Each finding has a severity, a description, a fix recommendation and a code location.
Each dialect has its own rules in the vulnerability database. Most rule names are shared, such as SQL injection and Hardcoded password, and the severity can differ between dialects. VBScript and VB.NET also have their own rules.
Most Visual Basic 6 and VBA 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. Visual Basic 6 and VBA, as well as VBScript and VB.NET, are among the 43 languages in DerScanner, so legacy Visual Basic code and the rest of your codebase are scanned in one platform, with one severity scale and one report format.
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.
For Visual Basic 6 and VBA, DerScanner provides security analysis (SAST). SCA covers VB.NET. Code quality analysis covers JavaScript, TypeScript, Delphi and Pascal.
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 Visual Basic 6 and VBA 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

