Visual Code Grepper (VCG) Integration with DefectDojo
Visual Code Grepper (VCG) is an open-source automated code security review tool developed by NCC Group that performs static analysis across C/C++, Java, C#, VB, PL/SQL, PHP, COBOL, and R to identify security vulnerabilities, insecure coding practices, and code quality issues including buffer overflows, SQL injection, XSS, banned functions, and suspicious code comments through pattern matching and complex security checks. The tool provides severity-rated results with color-coded output, visual code breakdowns with pie charts showing proportions of code quality metrics, customizable configuration files for language-specific security rules, and multiple export formats including XML and CSV to enable developers and security reviewers to accelerate code security assessments during time-constrained reviews throughout the software development lifecycle.
Data Granularity: What Gets Imported
The following fields are captured from Visual Code Grepper (VCG) results and surfaced in DefectDojo findings:
| Field | Source | Notes |
|---|---|---|
| Title | Finding name from the scan | Matched to the tool's own naming |
| Severity | Critical / High / Medium / Low / Info | Mapped from the tool's own severity scale |
| Description | Finding detail from the report | Includes what the issue is and why it matters |
| Mitigation | Remediation guidance | Where the tool provides it |
Importing Into DefectDojo
Use the DefectDojo import API to create a new Test under the relevant Engagement for your product. The request body:
{
"scan_type": "Visual Code Grepper (VCG)",
"engagement": "<engagement-id>",
"file": "results.json"
}