analyze_vulnerability_usage
Assess whether vulnerable components are actually used by searching imports and usages, grouping hits by architectural layer, and flagging externally reachable code to estimate real exploitability.
Instructions
Assess whether vulnerable components are actually used in a project. For each component, search imports/usages (FQCN or artifact keywords), group hits by architectural layer (controller/service/test/...), and flag externally-reachable usages to help estimate real exploitability. Layers are resolved from file paths AND file contents: any file declaring @RestController/@Controller/@RequestMapping/@GetMapping/@PostMapping/@PutMapping/@DeleteMapping is treated as a controller ([HIGH]) even when its path has no web/controller token. project_root must be an absolute path to the target project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| components | Yes | ||
| max_matches | No | ||
| project_root | No | . |