Skip to main content

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

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 πŸ”΄

What it means:
  • 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
Why it’s critical:
  • Exposed credentials can be exploited
  • Direct access to cloud resources
  • Potential for data breaches
  • Compliance violations
How to fix:

High Severity Issues 🟠

What it means:
  • Severity: High (50 points)
  • Issue: Hardcoded API key (Stripe, GitHub, etc.)
  • Risk: Potential unauthorized access
  • Priority: Fix before next release
How to fix:

Medium Severity Issues 🟑

What it means:
  • Severity: Medium (10 points each)
  • Issue: PII or configuration data in code
  • Risk: Privacy compliance concerns
  • Priority: Address when convenient
How to fix:

Low Severity Issues πŸ”΅

What it means:
  • Severity: Low (1 point)
  • Issue: Minor configuration concerns
  • Risk: Minimal
  • Priority: Optional cleanup
How to fix:

Common Issue Types

1. Hardcoded Secrets

2. PII in Code

3. Connection Strings

4. High Entropy Strings

What it means:
  • String has high randomness (entropy > 4.5)
  • Likely a generated secret or token
  • May be a legitimate random value
How to evaluate:
  1. Is it a secret? β†’ Move to env var or vault
  2. Is it a hash? β†’ OK to keep if public
  3. Is it a test fixture? β†’ Add comment explaining

Action Priority Matrix

False Positives

Sometimes KafkaCode may flag non-issues:

Example 1: Test Data

Example 2: Public Information

Example 3: Placeholder Values

How to handle:
  1. Review the context
  2. Determine if it’s a real issue
  3. If false positive, add a comment
  4. Consider refactoring for clarity

Report Examples

Clean Project (A+)

Interpretation: Perfect! Safe for production.

Minor Issues (A-)

Interpretation: Very good. Optional cleanup of IP addresses.

Moderate Concerns (C)

Interpretation: Not production-ready. Fix critical/high issues immediately.

Critical Problems (F)

Interpretation: Emergency. Complete security audit needed. Block all deployments.

Next Steps

CI/CD Integration

Automate scanning in your pipeline

Privacy Grading

Deep dive into the grading system

Detection Methods

Understand what’s being detected

Examples

See real-world examples