zins-investigate-security-incident
Investigate security incidents using Zscaler Z-Insights analytics. Correlates threat categories, cyber incident trends, firewall actions, web traffic patterns, and shadow IT data to build a comprehensive incident timeline. Use when a security analyst asks: 'What threats were detected?', 'Show me incident trends', 'Investigate this security event', or 'What shadow IT is being used?'
What this skill does
# Z-Insights: Investigate Security Incident ## Keywords security incident, threat investigation, cyber incident, malware detected, phishing, threat analytics, incident response, shadow IT, threat trends, firewall blocks, web traffic anomaly, security analytics ## Overview Investigate security incidents by correlating multiple Z-Insights data sources: threat categories, cyber incident logs, firewall actions, web traffic patterns, and shadow IT discovery. This skill builds a timeline and context around security events to support incident response and threat hunting. **Use this skill when:** A security analyst needs to investigate detected threats, analyze incident trends, understand the scope of a security event, or review shadow IT and CASB findings. --- ## Workflow Follow this 6-step process to investigate a security incident. ### Step 1: Understand the Incident Scope Gather from the analyst: - What type of event? (malware, phishing, data exfiltration, policy violation, anomalous traffic) - When did it occur or when was it detected? - Specific user, location, or application involved? - Alert or ticket reference number? --- ### Step 2: Check Threat Analytics **Get threat super categories:** ```text zins_get_threat_super_categories() ```text This returns high-level threat categories (malware, phishing, spyware, command & control, etc.) with counts. Identify which category the incident falls under. **Get detailed threat classifications:** ```text zins_get_threat_class() ```text This breaks down threats into specific types (virus, trojan, ransomware, exploit kit, cryptominer, etc.). Look for spikes or anomalies in the relevant class. --- ### Step 3: Analyze Cyber Incidents **Get incident overview:** ```text zins_get_cyber_incidents() ```text **Get incidents by location to identify the source:** ```text zins_get_cyber_incidents_by_location() ```text **Get daily trends to identify when the incident started:** ```text zins_get_cyber_incidents_daily() ```text Look for: - Sudden spikes in specific incident categories - Geographic concentration (specific offices or regions) - Correlation between incident start time and reported symptoms **Get incidents correlated by threat and application:** ```text zins_get_cyber_incidents_by_threat_and_app() ```text This shows which applications are associated with which threats -- critical for understanding the attack vector. --- ### Step 4: Review Firewall and Traffic Data **Check firewall actions:** ```text zins_get_firewall_by_action() ```text Look for: - Spike in BLOCK actions (indicates active threat mitigation) - Changes in ALLOW vs BLOCK ratios - New blocked categories **Check firewall by location:** ```text zins_get_firewall_by_location() ```text **Check web traffic patterns:** ```text zins_get_web_traffic_by_location() zins_get_web_traffic_no_grouping() ```text Look for anomalous traffic volumes that might indicate: - Data exfiltration (unusual outbound volume) - Command & control beaconing (regular small requests) - DDoS participation (high outbound traffic to specific destinations) **Check protocol distribution:** ```text zins_get_web_protocols() ```text Unusual protocol distribution (e.g., spike in non-HTTPS traffic) may indicate malware communicating over unencrypted channels. --- ### Step 5: Check Shadow IT and CASB **Review CASB app usage:** ```text zins_get_casb_app_report() ```text **Discover shadow IT applications:** ```text zins_get_shadow_it_apps() zins_get_shadow_it_summary() ```text Shadow IT applications are unsanctioned SaaS tools that may be: - Data exfiltration vectors - Sources of credential compromise - Compliance violations Check if the incident involves any unsanctioned applications. --- ### Step 6: Generate Incident Report ```text Security Incident Investigation Report ======================================== Date: <current_date> Investigator: AI Assistant Reference: <ticket_number> ## Incident Summary - **Type:** <Malware / Phishing / Data Exfiltration / Policy Violation> - **Severity:** <Critical / High / Medium / Low> - **Detection Time:** <timestamp> - **Status:** <Active / Contained / Resolved> --- ## Timeline | Time | Event | Source | |---------------|------------------------------------------------|-----------| | 09:15 UTC | First malware detection (Trojan.GenericKD) | Threats | | 09:15-09:45 | 47 additional detections from same location | Threats | | 09:30 UTC | Firewall block spike: 340% above baseline | Firewall | | 09:45 UTC | Anomalous outbound traffic to unknown IPs | Traffic | | 10:00 UTC | Security team alerted | Manual | --- ## Threat Analysis **Threat Category:** Malware → Trojan - Super Category: Malware (↑ 280% from baseline) - Classification: Trojan.GenericKD - Variant: Known payload, first seen in wild 2 weeks ago **Affected Applications:** - browser-plugin-update.com (uncategorized domain) - file-share-temp.net (file sharing application) **Geographic Distribution:** - 85% of detections from New York office - 10% from San Francisco office - 5% from remote workers --- ## Firewall Response - Block actions: 523 (↑ 340% from daily average) - Blocked destinations: 12 unique IPs - Blocked protocols: HTTP (port 80), custom (port 8443) - Firewall rules triggered: - "Block Known C2 Domains" (287 blocks) - "Block Uncategorized Outbound" (236 blocks) --- ## Traffic Anomalies - Outbound traffic spike: 4.2 GB above normal for this time window - 67% of anomalous traffic targeted 3 external IP addresses - Protocol: HTTPS (port 443) — may indicate encrypted C2 channel --- ## Shadow IT Involvement - **file-share-temp.net** is an unsanctioned file sharing service - Risk score: High - 12 users accessed this application in the past 24 hours - Not in the sanctioned application list - Likely initial infection vector --- ## Recommendations ### Immediate (Containment) 1. Block all identified C2 IP addresses at the firewall 2. Isolate affected devices in the New York office 3. Force password reset for users who accessed file-share-temp.net ### Short-Term (Eradication) 4. Run endpoint scans on all devices in the New York office 5. Add file-share-temp.net to the URL blocklist 6. Review and block similar uncategorized file sharing domains ### Long-Term (Prevention) 7. Create a URL filtering rule to block uncategorized file sharing sites 8. Enable SSL inspection for uncategorized domains 9. Implement DLP rules to detect and block sensitive data uploads to unsanctioned applications 10. Add shadow IT discovery findings to monthly security review ```text --- ## Quick Reference **Primary workflow:** Scope → Threats → Incidents → Firewall/Traffic → Shadow IT → Report **Threat tools:** - `zins_get_threat_super_categories()` -- high-level threat categories - `zins_get_threat_class()` -- detailed threat classifications **Incident tools:** - `zins_get_cyber_incidents()` -- incident overview - `zins_get_cyber_incidents_by_location()` -- incidents by location - `zins_get_cyber_incidents_daily()` -- daily trends - `zins_get_cyber_incidents_by_threat_and_app()` -- threat-app correlation **Firewall tools:** - `zins_get_firewall_by_action()` -- allow/block distribution - `zins_get_firewall_by_location()` -- firewall events by location - `zins_get_firewall_network_services()` -- network service usage **Traffic tools:** - `zins_get_web_traffic_by_location()` -- traffic by location - `zins_get_web_traffic_no_grouping()` -- total traffic volume - `zins_get_web_protocols()` -- protocol distribution **Shadow IT tools:** - `zins_get_casb_app_report()` -- CASB application report - `zins_get_shadow_it_apps()` -- discovered shadow IT apps - `zins_get_shadow_it_summary()` -- shadow IT summary
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.