v3.18.0

sinewaveai/agent-security-scanner-mcpv3.18.0Mar 6, 2026by sinewaveai

AI Summary

Launches a Semantic Code Analysis Layer using Control/Data Flow Graphs to detect logic-level vulnerabilities.

Key Highlights

  • New Semantic Analysis Engine (CFG/DFG/CPG)
  • 52 new logic-level vulnerability rules
  • 15-20% more vulnerability detection
  • Zero ML/LLM dependencies

New Features

  • Control Flow Graph (CFG) tracking
  • Data Flow Graph (DFG) tracking
  • Code Property Graph (CPG) analysis
  • Logic-level vulnerability detection

Full Release Notes

# ๐ŸŽฏ Semantic Code Analysis Layer

This release introduces a groundbreaking **Semantic Code Analysis Layer** that detects logic-level vulnerabilities beyond what traditional AST/regex scanners can find.

## โœจ What's New

### Semantic Analysis Engine
- **Control Flow Graph (CFG)** - Tracks execution paths, detects unreachable code
- **Data Flow Graph (DFG)** - Follows data dependencies and taint propagation
- **Code Property Graph (CPG)** - Combines CFG + DFG + AST for deep semantic understanding
- **52 New Rules** - Logic-level vulnerability detection:
  - Missing authentication/authorization checks
  - Race conditions and TOCTOU vulnerabilities
  - Use-after-free patterns
  - Logic contradictions
  - Unreachable security checks
  - Improper error handling

### Impact
๐ŸŽฏ **15-20% more vulnerabilities caught** compared to pure AST/regex approaches
๐Ÿš€ **Zero ML/LLM dependencies** - pure graph-based analysis
โšก **Fast performance** - integrated with existing daemon architecture

## ๐Ÿ“Š Technical Details

**New Files:**
- \`src/semantic-analyzer.js\` (1,284 lines) - Core semantic analysis engine
- \`src/semantic-integration.js\` (283 lines) - Integration with scan pipeline
- \`rules/semantic-security.yaml\` (52 rules) - Semantic vulnerability patterns
- \`tests/semantic-analysis.test.js\` - Complete test coverage

**Architecture:**
\`\`\`
AST Parser โ†’ CFG Builder โ†’ DFG Builder โ†’ CPG Analyzer โ†’ Pattern Matcher โ†’ Findings
\`\`\`

## ๐Ÿ› Bug Fixes

- **Path Validation:** Improved error handling in scan-skill tool:
  - ENOENT errors now return "Path not found"
  - ELOOP errors return "Symlink loop detected"
  - EACCES errors return "Permission denied"

## ๐Ÿ“š Documentation Improvements

- Reorganized documentation structure (moved docs to \`docs/\` folder)
- Removed 9 obsolete planning documents
- Added comprehensive semantic analysis guide
- Cleaned up unused logo files

## ๐Ÿงช Testing

- 32 test files (up from 28)
- 420+ tests passing
- Complete semantic analysis test coverage

## ๐Ÿ“ฆ Installation

\`\`\`bash
npm install agent-security-scanner-mcp@3.18.0
\`\`\`

Or update your MCP config:
\`\`\`json
{
  "mcpServers": {
    "security-scanner": {
      "command": "npx",
      "args": ["agent-security-scanner-mcp@3.18.0"]
    }
  }
}
\`\`\`

## ๐Ÿ”— Links

- [Changelog](https://github.com/sinewaveai/agent-security-scanner-mcp/blob/main/CHANGELOG.md#3180---2026-03-06)
- [Documentation](https://github.com/sinewaveai/agent-security-scanner-mcp/blob/main/docs/)
- [Semantic Analysis Guide](https://github.com/sinewaveai/agent-security-scanner-mcp/blob/main/docs/semantic-analysis.md)

## ๐Ÿ™ Contributors

Built with ๐Ÿง  by [@sinewaveai](https://github.com/sinewaveai)

---

**Full Changelog**: https://github.com/sinewaveai/agent-security-scanner-mcp/compare/v3.17.2...v3.18.0