scstelz/security-investigator/exposure-investigation
Claude Code and agent skill by scstelz/security-investigator
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Use this skill when asked to generate a vulnerability and exposure management report, assess security posture, or review CVEs, security configurations, and attack paths. Triggers on keywords like "vulnerability report", "exposure report", "CVE assessment", "security posture", "vulnerability assessment", "exposure management", "patch status", "end of support", "security recommendations", "attack paths", "critical assets", "configuration compliance", "Defender device health", "security score", "TVM", "threat and vulnerability management", or when asking about overall organizational vulnerability/exposure state. This skill queries DeviceTvm* tables and ExposureGraphNodes/Edges to produce a comprehensive posture report covering CVEs, exploitable vulnerabilities, security configuration compliance, end-of-support software, critical asset inventory, attack paths, Defender device health, and certificate status. Supports org-wide and per-device scoping with inline chat and markdown file output.
Install
npx vskill@latest install scstelz/security-investigator/exposure-investigationSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as scstelz/security-investigator/exposure-investigation.
Vulnerability & Exposure Management Report — Instructions
Purpose
This skill generates a comprehensive Vulnerability & Exposure Management Report covering the full security posture of the organization (or a specific device). It goes beyond CVEs to include security configuration compliance, end-of-support software, Exposure Management critical assets, attack paths, and certificate status.
Entity Type: Organization-wide (default) or single device
| Scope | Primary Tables | Use Case | |
|---|---|---|---|
| Org-wide (default) | DeviceTvmSoftwareVulnerabilities, ExposureGraphNodes, ExposureGraphEdges | Full organizational posture assessment | |
| Per-device | DeviceTvmSoftwareVulnerabilities, DeviceTvmSecureConfigurationAssessment | Focused device vulnerability review |
What this skill covers:
| Section | Data Source | Coverage | |
|---|---|---|---|
| CVE Vulnerabilities | DeviceTvmSoftwareVulnerabilities + DeviceTvmSoftwareVulnerabilitiesKB | Severity distribution, exploitable CVEs, CVSS scores | |
| Security Configuration | DeviceTvmSecureConfigurationAssessment + ...KB | OS, Network, Security Controls, Accounts, Application compliance | |
| End-of-Support Software | DeviceTvmSoftwareInventory | EoS/EoL software with dates and affected devices | |
| Critical Assets | ExposureGraphNodes | Criticality levels, internet-facing, RCE/privesc flags | |
| Attack Paths | ExposureGraphEdges + ExposureGraphNodes | Multi-hop paths from vulnerable to critical assets | |
| Defender Device Health | DeviceTvmSecureConfigurationAssessment + DeviceInfo | AV mode, signatures, RTP, tamper protection, cloud protection compliance by active/inactive status | |
| Certificate Status | DeviceTvmCertificateInfo | Expired and expiring certificates | |
| Software Evidence (drill-down) | DeviceTvmSoftwareEvidenceBeta | File paths, registry paths linking vulnerable software to on-disk locations — used for targeted remediation |
📑 TABLE OF CONTENTS
- [Critical Workflow Rules](#-critical-workflow-rules---read-first-) - Start here!
- [Output Modes](#output-modes) - Inline chat vs. Markdown file
- [Quick Start](#quick-start-tldr) - 8-step execution pattern
- [Execution Workflow](#execution-workflow) - Complete phased process
- [Sample KQL Queries](#sample-kql-queries) - Validated query patterns (Queries 1-11, 13-16)
- [Drill-Down Reference Queries](#drill-down-reference-queries) - Targeted file-level evidence for remediation (Queries 17-19)
- [Report Template](#report-template) - Output structure and formatting
- [Per-Device Mode](#per-device-mode) - Single device scoping
- [Known Pitfalls](#known-pitfalls) - Edge cases
- [Error Handling](#error-handling) - Troubleshooting guide
Investigation shortcuts:
- Specific CVE assessment (TP Q12): Q2 (exploitable CVEs + KB details) → Q5 (per-device vuln counts, scoped) → Q14 (top vulnerable software) → Q17/Q18 (file evidence drill-down)
- Internet-facing critical asset exposure (TP Q11): Q7 (critical asset inventory) → Q15 (internet-facing + vulns) → Q10a (vulnerable device summary) → Q10b (blast radius edges) → Q16 (multi-hop attack paths, optional)
- Per-device vulnerability review (TP Q12, TP Q1): Q5 (per-device vuln counts) → Q6 (per-device compliance) → Q8 (high-impact misconfigs) → Q13 (certificates)
- Fleet-wide posture report (standalone): Q1 (severity dist) → Q2 (exploitable) → Q3 (config compliance) → Q4 (EoS software) → Q7 (critical assets) → Q9 (Defender health)
- Defender health audit (TP Q11, standalone): Q9 (fleet summary by control×OS) → Q11 (non-compliant exceptions, active only) → Q6 (per-device compliance scorecard)
- Attack path analysis (TP Q11+Q12): Q10a (vulnerable device exposure) → Q10b (1-hop blast radius) → Q15 (internet-facing critical + vulns) → Q16 (multi-hop paths, optional)
- Software version sprawl (after Q14 or Q2): Q14 (top vulnerable software) → Q17 (version sprawl by source) → Q18 (CVE to file mapping) → Q19 (stale extension folders)
⛔ Shortcut Default Rule: When a matching shortcut exists for the investigation context, use it — don't run the full workflow. Only run the full query set when the user explicitly requests "full investigation", "comprehensive", or "deep dive". Shortcuts render only the report sections relevant to their query chain (plus Executive Summary and Recommendations, always).
⚠️ CRITICAL WORKFLOW RULES - READ FIRST ⚠️
Before starting ANY vulnerability/exposure report:
- ALL queries in this skill use `RunAdvancedHuntingQuery` — DeviceTvm and ExposureGraph tables are Advanced Hunting only (NOT in Sentinel Data Lake)
- No Sentinel workspace selection is required — this skill does NOT query Sentinel Data Lake tables
- ALWAYS ask the user for output mode if not specified: inline chat summary, markdown file report, or both (default: both)
- ALWAYS ask the user for scope if ambiguous: org-wide (default) or specific device name
- ALWAYS run independent queries in parallel for performance
- ALWAYS use `create_file` for markdown reports (NEVER use PowerShell terminal commands)
- ALWAYS sanitize PII from saved reports — use generic placeholders for real hostnames, tenant names, and UPNs in committed files (reports/ files for user's own use may contain real values)
- ExposureGraph tables are snapshot data — no
TimestamporTimeGeneratedfilter needed - DeviceTvm assessment tables — use
summarize arg_max(Timestamp, *) by DeviceId, ConfigurationIdto get the latest assessment per device×config. Do NOT useTimestamp > ago(1d)as a pre-filter — lab/weekend environments may have stale data and return 0 results
Tool Selection
| Table Pattern | Tool | Notes | |
|---|---|---|---|
DeviceTvm* | RunAdvancedHuntingQuery | AH-only tables | |
ExposureGraphNodes | RunAdvancedHuntingQuery | AH-only, snapshot data, no timestamp filter | |
ExposureGraphEdges | RunAdvancedHuntingQuery | AH-only, snapshot data, no timestamp filter |
🔴 PROHIBITED:
- ❌ Using
mcp_sentinel-data_query_lakefor any table in this skill - ❌ Adding
TimeGeneratedfilters to ExposureGraph queries - ❌ Reporting findings without actual query evidence
- ❌ Fabricating CVE IDs, CVSS scores, or device names
When invoked from a parent skill (threat-pulse, incident-investigation, etc.)
- Skip output mode and scope prompts — the parent skill controls output format
- Use the investigation shortcut that matches the parent trigger (see shortcuts above the TOC)
- For quick triage: run only the shortcut query chain
- For deep investigation: run the full phased workflow
Output Modes
Mode 1: Inline Chat Summary (default for quick requests)
Compact executive summary rendered directly in chat.
Mode 2: Markdown File Report
Full detailed report saved to reports/exposure/vulnerability_exposure_report_<YYYYMMDD_HHMMSS>.md.
Mode 3: Both (default when user says "report" or "generate report")
Inline chat executive summary + full markdown file.
Ask user if not specified:
"How would you like the report? I can provide:1. Inline chat summary — executive overview in chat2. Markdown file — detailed report saved to reports/exposure/3. Both (recommended) — summary in chat + full report file"
Quick Start (TL;DR)
8-step execution pattern for org-wide report:
Execution Workflow
Phase 1: Core Vulnerability & Compliance (3 parallel queries)
Run these simultaneously:
| Query | Description | Reference | |
|---|---|---|---|
| Q1 | CVE severity distribution | Query 1 | |
| Q2 | Exploitable CVEs (with known exploits) | Query 2 | |
| Q3 | Security config compliance by category | Query 3 |
Phase 2: Software & Per-Device Detail (3 parallel queries)
| Query | Description | Reference | |
|---|---|---|---|
| Q4 | End-of-support software inventory | Query 4 | |
| Q5 | Per-device vulnerability counts | Query 5 | |
| Q6 | Per-device compliance scorecard | Query 6 |
Phase 3: Exposure Management & Defender Health (3 parallel queries)
| Query | Description | Reference | |
|---|---|---|---|
| Q7 | Critical asset inventory | Query 7 | |
| Q8 | High-impact misconfigurations with remediation | Query 8 | |
| Q9 | Defender health fleet summary | Query 9 |
Phase 4: Attack Paths & Supplementary (4 parallel queries)
| Query | Description | Reference | |
|---|---|---|---|
| Q10a | Vulnerable device exposure summary (fast) | Query 10a | |
| Q10b | Edge connectivity from vulnerable devices (fast) | Query 10b | |
| Q11 | Defender health non-compliant exceptions | Query 11 | |
| Q13 | Certificate expiration status | Query 13 |
Phase 5: Supplementary Detail (optional, 3 parallel queries)
Run only if Phase 1-4 reveal high-risk items:
| Query | Description | Reference | |
|---|---|---|---|
| Q14 | Top vulnerable software by CVE count | Query 14 | |
| Q15 | Internet-facing critical assets with vulnerabilities | Query 15 | |
| Q16 | Multi-hop attack path enumeration (slow — graph-match) | Query 16 |
Phase 6: Render Output
- Compute summary metrics from all query results
- Assign overall risk rating (see Risk Assessment)
- Render inline chat executive summary
- Generate markdown file (if requested)
Sample KQL Queries
All queries use `RunAdvancedHuntingQuery` via the Sentinel Triage MCP server.
Query 1: CVE Severity Distribution
Purpose: Top-level severity breakdown for executive summary.
Query 2: Exploitable CVEs
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/exposure-investigation/SKILL.md
Popularity
- Repository stars
- 200
- Repository forks
- 51
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 May 2026, 6 months ago.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/scstelz/security-investigator/exposure-investigation)