Report Structure
A KafkaCode report consists of three main sections:1
Scan Summary
High-level overview of the scan results
2
Issue Listings
Detailed findings grouped by severity
3
Recommendations
Actionable advice for each issue
Understanding the Scan Summary
Key Metrics Explained
| Metric | Meaning | What to Look For |
|---|---|---|
| Directory | Path that was scanned | Verify correct location |
| Timestamp | When scan was performed | Track scan history |
| Files Scanned | Number of source files analyzed | Ensure expected coverage |
| Total Issues | Count of all findings | Lower is better |
| Privacy Grade | Overall grade (A+ to F) | Target A- or better for production |
Privacy Grade Interpretation
π’ A+ / A / A-
Excellentβ
Production-ready
- Minimal to no issues
- Safe to deploy
- Maintain current practices
π΅ B+ / B / B-
Goodβ οΈ Minor improvements needed
- Generally safe
- Address issues when convenient
- Review before major releases
π‘ C+ / C / C-
Moderateβ οΈ Action required
- Notable privacy concerns
- Fix before production
- Not recommended for deployment
π΄ D / F
Criticalβ Must fix immediately
- Security vulnerabilities
- Block all deployments
- Emergency response needed
Reading Issue Listings
Issues are organized by severity level:Critical Issues π΄
- Severity: Critical (100 points)
- File:
src/config.js - Line: 12
- Issue: Hardcoded AWS access key
- Code: Actual problematic code shown
- Action: Move to environment variables immediately
- Exposed credentials can be exploited
- Direct access to cloud resources
- Potential for data breaches
- Compliance violations
High Severity Issues π
- Severity: High (50 points)
- Issue: Hardcoded API key (Stripe, GitHub, etc.)
- Risk: Potential unauthorized access
- Priority: Fix before next release
Medium Severity Issues π‘
- Severity: Medium (10 points each)
- Issue: PII or configuration data in code
- Risk: Privacy compliance concerns
- Priority: Address when convenient
Low Severity Issues π΅
- Severity: Low (1 point)
- Issue: Minor configuration concerns
- Risk: Minimal
- Priority: Optional cleanup
Common Issue Types
1. Hardcoded Secrets
- Problem
- Solution
- Prevention
2. PII in Code
- Problem
- Solution
- Compliance
3. Connection Strings
- Problem
- Solution
- Security
4. High Entropy Strings
- String has high randomness (entropy > 4.5)
- Likely a generated secret or token
- May be a legitimate random value
- Is it a secret? β Move to env var or vault
- Is it a hash? β OK to keep if public
- Is it a test fixture? β Add comment explaining
Action Priority Matrix
| Grade | Critical | High | Medium | Low | Action |
|---|---|---|---|---|---|
| F | 2+ | Any | Any | Any | π¨ Emergency fix |
| D | 1-2 | 2+ | Any | Any | β οΈ Immediate action |
| C- | 1 | 1+ | Any | Any | β οΈ Fix before deploy |
| C/C+ | 0 | 1-2 | 5+ | Any | β οΈ Address soon |
| B-/B/B+ | 0 | 0-1 | 1-5 | Any | βΉοΈ Plan fixes |
| A-/A/A+ | 0 | 0 | 0-1 | 1-10 | β Optional cleanup |
False Positives
Sometimes KafkaCode may flag non-issues:Example 1: Test Data
Example 2: Public Information
Example 3: Placeholder Values
- Review the context
- Determine if itβs a real issue
- If false positive, add a comment
- Consider refactoring for clarity

