scstelz/security-investigator/exposure-investigation

Claude Code and agent skill by scstelz/security-investigator

Trust tier 3
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

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-investigation

Semi-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

ScopePrimary TablesUse Case
Org-wide (default)DeviceTvmSoftwareVulnerabilities, ExposureGraphNodes, ExposureGraphEdgesFull organizational posture assessment
Per-deviceDeviceTvmSoftwareVulnerabilities, DeviceTvmSecureConfigurationAssessmentFocused device vulnerability review

What this skill covers:

SectionData SourceCoverage
CVE VulnerabilitiesDeviceTvmSoftwareVulnerabilities + DeviceTvmSoftwareVulnerabilitiesKBSeverity distribution, exploitable CVEs, CVSS scores
Security ConfigurationDeviceTvmSecureConfigurationAssessment + ...KBOS, Network, Security Controls, Accounts, Application compliance
End-of-Support SoftwareDeviceTvmSoftwareInventoryEoS/EoL software with dates and affected devices
Critical AssetsExposureGraphNodesCriticality levels, internet-facing, RCE/privesc flags
Attack PathsExposureGraphEdges + ExposureGraphNodesMulti-hop paths from vulnerable to critical assets
Defender Device HealthDeviceTvmSecureConfigurationAssessment + DeviceInfoAV mode, signatures, RTP, tamper protection, cloud protection compliance by active/inactive status
Certificate StatusDeviceTvmCertificateInfoExpired and expiring certificates
Software Evidence (drill-down)DeviceTvmSoftwareEvidenceBetaFile paths, registry paths linking vulnerable software to on-disk locations — used for targeted remediation

📑 TABLE OF CONTENTS

  1. [Critical Workflow Rules](#-critical-workflow-rules---read-first-) - Start here!
  2. [Output Modes](#output-modes) - Inline chat vs. Markdown file
  3. [Quick Start](#quick-start-tldr) - 8-step execution pattern
  4. [Execution Workflow](#execution-workflow) - Complete phased process
  5. [Sample KQL Queries](#sample-kql-queries) - Validated query patterns (Queries 1-11, 13-16)
  6. [Drill-Down Reference Queries](#drill-down-reference-queries) - Targeted file-level evidence for remediation (Queries 17-19)
  7. [Report Template](#report-template) - Output structure and formatting
  8. [Per-Device Mode](#per-device-mode) - Single device scoping
  9. [Known Pitfalls](#known-pitfalls) - Edge cases
  10. [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:

  1. ALL queries in this skill use `RunAdvancedHuntingQuery` — DeviceTvm and ExposureGraph tables are Advanced Hunting only (NOT in Sentinel Data Lake)
  2. No Sentinel workspace selection is required — this skill does NOT query Sentinel Data Lake tables
  3. ALWAYS ask the user for output mode if not specified: inline chat summary, markdown file report, or both (default: both)
  4. ALWAYS ask the user for scope if ambiguous: org-wide (default) or specific device name
  5. ALWAYS run independent queries in parallel for performance
  6. ALWAYS use `create_file` for markdown reports (NEVER use PowerShell terminal commands)
  7. 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)
  8. ExposureGraph tables are snapshot data — no Timestamp or TimeGenerated filter needed
  9. DeviceTvm assessment tables — use summarize arg_max(Timestamp, *) by DeviceId, ConfigurationId to get the latest assessment per device×config. Do NOT use Timestamp > ago(1d) as a pre-filter — lab/weekend environments may have stale data and return 0 results
Tool Selection
Table PatternToolNotes
DeviceTvm*RunAdvancedHuntingQueryAH-only tables
ExposureGraphNodesRunAdvancedHuntingQueryAH-only, snapshot data, no timestamp filter
ExposureGraphEdgesRunAdvancedHuntingQueryAH-only, snapshot data, no timestamp filter

🔴 PROHIBITED:

  • ❌ Using mcp_sentinel-data_query_lake for any table in this skill
  • ❌ Adding TimeGenerated filters 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 chat
2. 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:

Step 1: Determine scope (org-wide or specific device) and output mode
Step 2: Run Phase 1 queries in parallel — CVE distribution, exploitable CVEs, config compliance
Step 3: Run Phase 2 queries in parallel — EoS software, per-device vulns, per-device compliance
Step 4: Run Phase 3 queries in parallel — ExposureGraph critical assets, high-impact misconfigs, Defender health fleet summary
Step 5: Run Phase 4 queries in parallel — Attack paths, Defender health exceptions, certificates
Step 6: Run Phase 5 (optional) — Top vulnerable software, internet-facing critical assets
Step 7: Compute summary metrics and risk assessment
Step 8: Render inline chat executive summary
Step 9: Generate markdown file report (if requested)

Execution Workflow

Phase 1: Core Vulnerability & Compliance (3 parallel queries)

Run these simultaneously:

QueryDescriptionReference
Q1CVE severity distributionQuery 1
Q2Exploitable CVEs (with known exploits)Query 2
Q3Security config compliance by categoryQuery 3
Phase 2: Software & Per-Device Detail (3 parallel queries)
QueryDescriptionReference
Q4End-of-support software inventoryQuery 4
Q5Per-device vulnerability countsQuery 5
Q6Per-device compliance scorecardQuery 6
Phase 3: Exposure Management & Defender Health (3 parallel queries)
QueryDescriptionReference
Q7Critical asset inventoryQuery 7
Q8High-impact misconfigurations with remediationQuery 8
Q9Defender health fleet summaryQuery 9
Phase 4: Attack Paths & Supplementary (4 parallel queries)
QueryDescriptionReference
Q10aVulnerable device exposure summary (fast)Query 10a
Q10bEdge connectivity from vulnerable devices (fast)Query 10b
Q11Defender health non-compliant exceptionsQuery 11
Q13Certificate expiration statusQuery 13
Phase 5: Supplementary Detail (optional, 3 parallel queries)

Run only if Phase 1-4 reveal high-risk items:

QueryDescriptionReference
Q14Top vulnerable software by CVE countQuery 14
Q15Internet-facing critical assets with vulnerabilitiesQuery 15
Q16Multi-hop attack path enumeration (slow — graph-match)Query 16
Phase 6: Render Output
  1. Compute summary metrics from all query results
  2. Assign overall risk rating (see Risk Assessment)
  3. Render inline chat executive summary
  4. Generate markdown file (if requested)

Sample KQL Queries

All queries use `RunAdvancedHuntingQuery` via the Sentinel Triage MCP server.
Query 1: CVE Severity Distribution
kql
DeviceTvmSoftwareVulnerabilities
| summarize
DeviceCount = dcount(DeviceId),
VulnCount = count()
by VulnerabilitySeverityLevel
| order by VulnCount desc

Purpose: Top-level severity breakdown for executive summary.


Query 2: Exploitable CVEs
kql
DeviceTvmSoftwareVulnerabilities
| join kind=inner DeviceTvmSoftwareVulnerabilitiesKB on CveId
| where IsExploitAvailable == true
| summarize
AffectedDevices = dcount(DeviceName),
DeviceList = make_set(DeviceName)
by CveId, VulnerabilitySeverityLevel, CvssScore, VulnerabilityDescription
| order by CvssScore desc, AffectedDevices desc
| take 20

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/scstelz/security-investigator/exposure-investigation/badge)](https://verified-skill.com/skills/scstelz/security-investigator/exposure-investigation)

Something wrong with this skill or its page? Tell us.