2.4 KiB
2.4 KiB
Service Endpoint Security Analysis (Scanner)
Module
Scanner
Status
IMPLEMENTED
Description
Scanner analyzes service endpoints declared in CycloneDX 1.7 SBOMs for security issues including missing authentication, trust boundary violations, and unsafe data flows. Produces ServiceSecurityReport with findings and dependency chains.
Implementation Details
- Security Analyzer:
src/Scanner/__Libraries/StellaOps.Scanner.ServiceSecurity/ServiceSecurityAnalyzer.cs-ServiceSecurityAnalyzeranalyzing service endpoints from CycloneDX 1.7 SBOMs for authentication, authorization, trust boundary, and data flow security issuessrc/Scanner/__Libraries/StellaOps.Scanner.ServiceSecurity/ServiceSecurityServiceCollectionExtensions.cs- DI registration for service security analysis
- Models:
src/Scanner/__Libraries/StellaOps.Scanner.ServiceSecurity/Models/ServiceSecurityModels.cs-ServiceSecurityReport,ServiceSecurityFinding, and related models for security analysis results
- Report Formatting:
src/Scanner/__Libraries/StellaOps.Scanner.ServiceSecurity/Reporting/ServiceSecurityReportFormatter.cs-ServiceSecurityReportFormatterformatting security reports for output
- Pipeline Integration:
src/Scanner/StellaOps.Scanner.Worker/Processing/ServiceSecurity/ServiceSecurityStageExecutor.cs-ServiceSecurityStageExecutorscanner worker pipeline stage for service security analysis
- Tests:
src/Scanner/__Tests/StellaOps.Scanner.ServiceSecurity.Tests/ServiceSecurityAnalyzerTests.cs- Unit tests for the analyzersrc/Scanner/__Tests/StellaOps.Scanner.ServiceSecurity.Tests/ServiceSecurityIntegrationTests.cs- Integration tests
E2E Test Plan
- Analyze a CycloneDX 1.7 SBOM with service endpoint declarations and verify
ServiceSecurityAnalyzerproduces aServiceSecurityReportwith findings - Verify findings include missing authentication detection for endpoints that lack auth configuration
- Verify trust boundary violations are detected when services cross security zones without proper controls
- Verify unsafe data flow patterns (e.g., user input directly to database) are flagged with dependency chains
- Verify the
ServiceSecurityStageExecutorintegrates into the scanner worker pipeline and processes service sections from SBOMs - Verify the report formatter produces both human-readable and machine-parseable output formats