
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
codeguard-mcp
Advanced tools
Real-time AI code security scanner - MCP Server for detecting vulnerabilities, secrets, and compliance issues
Real-time AI code security scanner for detecting vulnerabilities, secrets, and compliance issues in AI-generated code.
CodeGuard MCP is a Model Context Protocol (MCP) server that provides comprehensive security scanning capabilities for AI coding assistants like Claude Desktop, Cursor, VS Code, and any MCP-compatible tool.
AI coding tools are powerful but can generate code with security vulnerabilities. CodeGuard addresses this critical gap by:
npm install -g codeguard-mcp
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"CodeGuard": {
"command": "npx",
"args": ["-y", "codeguard-mcp"]
}
}
}
scanCode - Comprehensive security scan
// Example usage in AI assistant
scanCode({
code: "const user = db.query(`SELECT * FROM users WHERE id = ${userId}`);",
language: "javascript",
securityLevel: "standard"
})
// Returns:
{
score: {
overall: 45,
breakdown: {
vulnerabilities: 30,
secrets: 100,
compliance: 75
},
grade: "F"
},
vulnerabilities: {
critical: [
{
type: "sql_injection",
severity: "critical",
line: 1,
message: "SQL Injection vulnerability: Using template literals in SQL queries",
cwe: "CWE-89",
owasp: "A03:2021 – Injection",
recommendation: "Use parameterized queries or prepared statements..."
}
]
},
suggestedFixes: [...]
}
scanVulnerabilities - Fast vulnerability-only scan
scanVulnerabilities({ code, language })
detectSecrets - Find exposed secrets
detectSecrets({ code })
// Detects: API keys, passwords, tokens, private keys, connection strings, etc.
checkCompliance - Regulatory compliance check
checkCompliance({
code,
securityLevel: "strict",
standards: ["GDPR", "HIPAA"]
})
suggestSecureFix - Generate secure code alternatives
suggestSecureFix({ vulnerability, context })
// Returns step-by-step fix with explanation
✅ A01 - Broken Access Control
✅ A02 - Cryptographic Failures
✅ A03 - Injection (SQL, XSS, Command)
✅ A04 - Insecure Design
✅ A05 - Security Misconfiguration
✅ A06 - Vulnerable Components
✅ A07 - Authentication Failures
✅ A08 - Data Integrity Failures
✅ A09 - Logging Failures
✅ A10 - Server-Side Request Forgery
Vulnerable Code:
const getUserById = (userId) => {
return db.query(`SELECT * FROM users WHERE id = ${userId}`);
};
CodeGuard Response:
{
"vulnerabilities": {
"critical": [{
"type": "sql_injection",
"severity": "critical",
"message": "SQL Injection vulnerability",
"recommendation": "Use parameterized queries"
}]
},
"suggestedFix": {
"fixed": "const getUserById = (userId) => {\n return db.query('SELECT * FROM users WHERE id = ?', [userId]);\n};"
}
}
Vulnerable Code:
const API_KEY = "sk_live_51H7xY2eZvKYlo2C8Nz9";
const config = {
databaseUrl: "mongodb://admin:password123@localhost:27017"
};
CodeGuard Response:
{
"secrets": [
{
"type": "api_key",
"line": 1,
"masked": "sk_l***************2C8Nz9",
"confidence": 95
},
{
"type": "connection_string",
"line": 3,
"masked": "mongodb://***",
"confidence": 95
}
]
}
Code:
app.post('/signup', (req, res) => {
const email = req.body.email;
db.users.insert({ email, password: req.body.password });
});
CodeGuard Response:
{
"compliance": {
"failed": [{
"standard": "GDPR",
"severity": "critical",
"issue": "Collecting personal data (email) without explicit consent",
"requirement": "Article 7: Conditions for consent",
"remediation": "Implement explicit consent collection before gathering personal data"
}]
}
}
security://score - Real-time security score dashboardsecurity://owasp-top-10 - OWASP Top 10 referencesecurityReview - Generate comprehensive security reviewfixVulnerability - Get step-by-step vulnerability fixesCodeGuard uses a weighted scoring system:
Grading Scale:
(Coming in v2.0)
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
MIT License - see LICENSE for details.
Built with ❤️ using QuickMCP SDK
Making AI coding safer, one scan at a time. 🛡️
FAQs
Real-time AI code security scanner - MCP Server for detecting vulnerabilities, secrets, and compliance issues
We found that codeguard-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.