Cybersecurity analyst

From rysweet/amplihack · View interactive version

Cybersecurity analyst is an AI agent skill from the GitHub repository rysweet/amplihack. Analyzes events through cybersecurity lens using threat modeling, attack surface analysis, defense-in-depth, zero-trust architecture, and risk-based frameworks (CIA triad, STRIDE, MITRE ATT&CK). Provides insights on vulnerabilities, attack vectors, defense strategies, incident response, and security

How to use this skill

Skill file

Cybersecurity Analyst Skill

Purpose

Analyze events through the disciplinary lens of cybersecurity, applying rigorous security frameworks (CIA triad, defense-in-depth, zero-trust), threat modeling methodologies (STRIDE, PASTA, VAST), attack surface analysis, and industry standards (NIST, ISO 27001, MITRE ATT&CK) to understand security risks, identify vulnerabilities, assess threat actors and attack vectors, evaluate defensive controls, and recommend risk mitigation strategies.

When to Use This Skill

Core Philosophy: Security Thinking

Cybersecurity analysis rests on fundamental principles:

Defense in Depth: No single security control is perfect. Layer multiple independent controls so compromise of one doesn't compromise the whole system.

Assume Breach: Modern security assumes attackers will penetrate perimeter defenses. Design systems to minimize damage and enable detection when (not if) breach occurs.

Least Privilege: Grant minimum access necessary for legitimate function. Every excess permission is an opportunity for exploitation.

Zero Trust: Never trust, always verify. Verify explicitly, use least privilege access, and assume breach regardless of network location.

Security by Design: Security cannot be bolted on afterward. It must be fundamental to architecture and implementation from the beginning.

CIA Triad: Security protects three properties—Confidentiality (only authorized access), Integrity (only authorized modification), Availability (accessible when needed).

Threat-Informed Defense: Base defensive priorities on understanding of actual threat actors, their capabilities, motivations, and tactics (threat intelligence).

Risk-Based Approach: Perfect security is impossible. Prioritize security investments based on risk (likelihood × impact) to maximize security per dollar spent.


Theoretical Foundations (Expandable)

Foundation 1: CIA Triad (Classic Security Model)

Components:

Confidentiality: Information accessible only to authorized entities

Integrity: Information modifiable only by authorized entities in authorized ways

Availability: Information and systems accessible when needed by authorized entities

Extensions:

Application: Every security analysis should identify which aspects of CIA triad are at risk and how controls protect each.

Sources:

Foundation 2: Defense in Depth (Layered Security)

Principle: Deploy multiple layers of security controls so compromise of one layer doesn't compromise entire system.

Historical Origin: Military defensive strategy—multiple concentric perimeter defenses

Security Layers:

  1. Physical: Facility access controls, locked server rooms
  2. Network: Firewalls, network segmentation, IDS/IPS
  3. Host: Endpoint protection, host firewalls, patch management
  4. Application: Input validation, secure coding, authentication
  5. Data: Encryption at rest and in transit, DLP, tokenization
  6. Human: Security awareness training, phishing simulation

Key Insight: Redundancy is not waste—it's resilience. Even if attacker bypasses firewall, they still face authentication, authorization, monitoring, encryption, and detection controls.

Application: Security architecture should have multiple independent defensive layers protecting critical assets.

Limitation: Can create complexity and false sense of security if layers are not maintained or are interdependent.

Sources:

Foundation 3: Zero Trust Architecture

Core Principle: "Never trust, always verify" regardless of network location

Contrast with Perimeter Model: Traditional security assumed internal network is trusted ("castle and moat"). Zero trust assumes no network location is trusted.

Key Tenets (NIST SP 800-207):

  1. Verify explicitly: Always authenticate and authorize based on all available data points
  2. Least privilege access: Limit user access with Just-In-Time and Just-Enough-Access
  3. Assume breach: Minimize blast radius and segment access; verify end-to-end encryption

Components:

Drivers:

Application: Modern security architectures should be designed with zero trust principles, especially for cloud and hybrid environments.

Sources:

Foundation 4: Threat Modeling

Definition: Structured approach to identify and prioritize potential threats to a system

Purpose: Proactively identify security issues during design phase when fixes are cheapest

Benefits:

Common Methodologies:

STRIDE (Microsoft):

PASTA (Process for Attack Simulation and Threat Analysis):

VAST (Visual, Agile, and Simple Threat modeling):

Application: Use threat modeling for new features, architecture changes, or security reviews.

Sources:

Foundation 5: MITRE ATT&CK Framework

Description: Knowledge base of adversary tactics and techniques based on real-world observations

Purpose: Understand how attackers operate to inform defense, detection, and threat hunting

Structure:

14 Tactics (Enterprise Matrix):

  1. Reconnaissance
  2. Resource Development
  3. Initial Access
  4. Execution
  5. Persistence
  6. Privilege Escalation
  7. Defense Evasion
  8. Credential Access
  9. Discovery
  10. Lateral Movement
  11. Collection
  12. Command and Control
  13. Exfiltration
  14. Impact

Application:

Value: Common language for describing attacker behavior; basis for threat-informed defense

Sources:


Core Analytical Frameworks (Expandable)

Framework 1: Attack Surface Analysis

Definition: Identification and assessment of all points where unauthorized user could enter or extract data from system

Components:

Attack Surface Elements:

Attack Vectors: Methods attackers use to exploit attack surface

Analysis Process:

  1. Enumerate: List all entry points and assets
  2. Classify: Categorize by type and criticality
  3. Assess: Evaluate exploitability and impact
  4. Prioritize: Rank by risk
  5. Reduce: Minimize unnecessary exposure

Metrics:

Application: Reducing attack surface is fundamental defensive strategy. Eliminate unnecessary exposure.

Sources:

Framework 2: Risk Assessment Frameworks

Purpose: Quantify and prioritize security risks to guide resource allocation

Common Frameworks:

CVSS (Common Vulnerability Scoring System):

FAIR (Factor Analysis of Information Risk):

NIST Risk Management Framework (RMF):

Qualitative vs. Quantitative:

Application: Risk assessment informs prioritization. Not all vulnerabilities are equally important—focus on highest risks.

Sources:

Framework 3: Security Control Frameworks

Purpose: Structured set of security controls to achieve security objectives

Major Frameworks:

NIST Cybersecurity Framework:

NIST SP 800-53 (Security and Privacy Controls):

CIS Controls (Center for Internet Security):

ISO/IEC 27001:

Application: Use frameworks to:

Sources:

Framework 4: Incident Response Lifecycle

Definition: Structured approach to handling security incidents

Standard Model (NIST SP 800-61):

Phase 1: Preparation

Phase 2: Detection and Analysis

Phase 3: Containment, Eradication, and Recovery

Phase 4: Post-Incident Activity

Key Concepts:

Metrics:

Application: Effective incident response minimizes damage, reduces recovery time, and captures learning.

Sources:

Framework 5: Secure Development Lifecycle (SDL)

Purpose: Integrate security into software development process

Microsoft SDL Phases:

  1. Training: Security training for developers
  2. Requirements: Define security requirements and privacy requirements
  3. Design: Threat modeling, attack surface reduction, defense in depth
  4. Implementation: Secure coding standards, code analysis tools
  5. Verification: Security testing (SAST, DAST, penetration testing)
  6. Release: Final security review, incident response plan
  7. Response: Execute incident response plan if vulnerability discovered

Key Practices:

OWASP SAMM (Software Assurance Maturity Model):

Application: Security must be integrated throughout development lifecycle, not just at the end.

Sources:


Methodological Approaches (Expandable)

Method 1: Threat Intelligence Analysis

Purpose: Understand adversaries, their capabilities, tactics, and targets to inform defense

Types of Threat Intelligence:

Strategic: High-level trends for executives

Operational: Campaign-level information for security operations

Tactical: Technical indicators for immediate defense

Analytical Process:

  1. Collection: Gather data from internal sources, threat feeds, OSINT, dark web
  2. Processing: Normalize, correlate, deduplicate
  3. Analysis: Contextualize, attribute, assess intent and capability
  4. Dissemination: Share with relevant teams in actionable format
  5. Feedback: Assess effectiveness and refine

Frameworks:

Application: Threat intelligence enables proactive, threat-informed defense rather than generic security measures.

Sources:

Method 2: Penetration Testing

Definition: Authorized simulated attack to evaluate security of systems

Types:

Black Box: No prior knowledge (simulates external attacker)

Gray Box: Partial knowledge (simulates insider or compromised user)

White Box: Full knowledge (comprehensive security assessment)

Phases (Penetration Testing Execution Standard):

  1. Pre-engagement: Scope, rules of engagement, legal agreements
  2. Intelligence gathering: OSINT, network scanning, service enumeration
  3. Threat modeling: Identify potential attack vectors
  4. Vulnerability analysis: Identify exploitable weaknesses
  5. Exploitation: Attempt to exploit vulnerabilities
  6. Post-exploitation: Assess impact, lateral movement, privilege escalation
  7. Reporting: Document findings, demonstrate impact, provide remediation guidance

Specialized Types:

Red Team vs. Penetration Testing:

Application: Regular penetration testing validates effectiveness of controls and identifies gaps before attackers do.

Sources:

Method 3: Security Architecture Review

Purpose: Evaluate system design for security properties and identify architectural vulnerabilities

Review Dimensions:

Structural Analysis:

Threat Modeling:

Control Assessment:

Compliance Review:

Technology Assessment:

Analysis Questions:

Outputs:

Application: Architecture review during design phase prevents expensive security issues in production.

Method 4: Vulnerability Assessment and Management

Purpose: Systematically identify, classify, prioritize, and remediate security weaknesses

Process:

Phase 1: Discovery

Phase 2: Assessment

Phase 3: Prioritization

Phase 4: Remediation

Phase 5: Verification

Challenges:

Best Practices:

Application: Continuous vulnerability management is essential hygiene. Can't fix what you don't know about.

Sources:

Method 5: Security Monitoring and Detection Engineering

Purpose: Design and operate capabilities to detect malicious activity

Components:

Data Sources:

Detection Mechanisms:

Signature-based: Known malicious patterns (antivirus, IDS signatures)

Anomaly-based: Deviations from baseline behavior

Heuristic-based: Rules based on attacker behavior patterns

Threat intelligence-based: Match against known IoCs

Detection Development:

  1. Understand attacker technique (MITRE ATT&CK)
  2. Identify data sources that capture technique
  3. Develop detection logic
  4. Test against true positives and false positives
  5. Tune threshold and logic
  6. Document detection and response procedures
  7. Monitor effectiveness and iterate

SIEM and SOC:

Metrics:

Application: You can't respond to what you don't detect. Invest in detection capabilities aligned to threats you face.

Sources:


Analysis Rubric

What to Examine

Assets and Data:

Attack Surface:

Threat Actors:

Vulnerabilities:

Existing Controls:

Questions to Ask

Threat Questions:

Vulnerability Questions:

Control Questions:

Risk Questions:

Compliance Questions:

Factors to Consider

Technical Factors:

Organizational Factors:

Threat Landscape:

Operational Factors:

Historical Parallels to Consider

Implications to Explore

Immediate Security Implications:

Broader Implications:

Strategic Implications:


Step-by-Step Analysis Process

Step 1: Define Scope and Context

Actions:

Outputs:

Step 2: Identify Assets and Data

Actions:

Outputs:

Step 3: Analyze Attack Surface

Actions:

Outputs:

Step 4: Conduct Threat Modeling

Actions:

Outputs:

Step 5: Identify Vulnerabilities

Actions:

Outputs:

Step 6: Assess Existing Controls

Actions:

Outputs:

Step 7: Analyze Risk

Actions:

Outputs:

Step 8: Evaluate Detection and Response

Actions:

Outputs:

Step 9: Develop Remediation Recommendations

Actions:

Outputs:

Step 10: Consider Compliance Requirements

Actions:

Outputs:

Step 11: Synthesize and Report

Actions:

Outputs:


Usage Examples

Example 1: Security Incident - Ransomware Attack

Event: Organization experiences ransomware attack; files encrypted, ransom note demands payment

Analysis:

Step 1 - Scope and Context:

Step 2 - Assets:

Step 3 - Attack Surface Analysis:

Step 4 - Threat Modeling (Post-Incident):

Step 5 - Vulnerabilities:

Step 6 - Control Assessment:

Step 7 - Risk Analysis:

Step 8 - Detection and Response:

Step 9 - Recommendations (Prioritized):

_Immediate (Hours to Days)_:

  1. Isolate affected systems (contain spread)
  2. Identify ransomware variant and check for decryption tools
  3. Engage incident response firm if no internal capability
  4. Do NOT pay ransom immediately (assess alternatives first)
  5. Notify legal, insurance, possibly law enforcement

_Short-term (Days to Weeks)_:

  1. Restore from backups if available and uncompromised
  2. Deploy EDR on all endpoints
  3. Implement MFA for all remote access
  4. Conduct forensic investigation to determine root cause and scope
  5. Develop and test IR playbook

_Medium-term (Weeks to Months)_:

  1. Network segmentation (prevent lateral movement)
  2. Email security gateway (block phishing)
  3. Privileged access management (limit credential theft)
  4. Security awareness training (reduce phishing success)
  5. Backup hardening (air-gapped or immutable backups)

_Long-term (Months to Year)_:

  1. Security maturity assessment and roadmap
  2. 24/7 SOC or MDR service
  3. Penetration testing and red team exercises
  4. Comprehensive vulnerability management program

Step 10 - Compliance:

Step 11 - Synthesis:

Example 2: Vulnerability Assessment - New Web Application Launch

Event: Organization planning to launch customer-facing web application; pre-launch security review requested

Analysis:

Step 1 - Scope:

Step 2 - Assets:

Step 3 - Attack Surface:

Step 4 - Threat Modeling (STRIDE):

Spoofing:

Tampering:

Repudiation:

Information Disclosure:

Denial of Service:

Elevation of Privilege:

Step 5 - Vulnerabilities (OWASP Top 10 Analysis):

  1. Broken Access Control: Check for IDOR vulnerabilities, horizontal/vertical privilege escalation
  2. Cryptographic Failures: Verify encryption at rest and in transit, key management
  3. Injection: Test for SQL injection, XSS, command injection
  4. Insecure Design: Review for security design flaws, threat model gaps
  5. Security Misconfiguration: Check for default credentials, unnecessary features, verbose errors
  6. Vulnerable Components: Scan dependencies for known CVEs
  7. Authentication Failures: Test password policy, session management, MFA
  8. Software/Data Integrity: Verify supply chain security, unsigned updates
  9. Logging Failures: Ensure security events logged, log tampering prevention
  10. SSRF: Test for server-side request forgery vulnerabilities

Step 6 - Control Assessment:

_Positive Findings_:

_Gaps Identified_:

Step 7 - Risk Analysis:

_Critical Risks_:

_High Risks_:

_Medium Risks_:

Step 8 - Detection and Response:

Step 9 - Recommendations (Prioritized by Risk):

_Must-Fix Before Launch (Critical)_:

  1. Fix IDOR vulnerabilities (implement authorization checks)
  2. Update vulnerable dependencies
  3. Remove verbose error messages in production
  4. Implement rate limiting on all endpoints

_Should-Fix Before Launch (High)_:

  1. Deploy WAF with OWASP Core Rule Set
  2. Separate admin portal (different domain, VPN/IP restriction)
  3. Configure SIEM integration and alerting

_Post-Launch (Medium)_:

  1. Implement MFA for customer accounts
  2. Enhance logging (capture more security events)
  3. Conduct penetration testing
  4. Establish bug bounty program

Step 10 - Compliance:

Step 11 - Synthesis:

Example 3: Security Architecture Review - Cloud Migration

Event: Organization planning to migrate on-premises applications to AWS; security architecture review requested

Analysis:

Step 1 - Scope:

Step 2 - Assets:

Step 3 - Attack Surface Changes:

Step 4 - Threat Modeling (Cloud-Specific):

_Cloud-Specific Threats_:

_MITRE ATT&CK for Cloud_:

Step 5 - Vulnerabilities (Cloud Context):

Step 6 - Control Assessment (Shared Responsibility Model):

_AWS Responsibilities_ (Security OF the Cloud):

_Customer Responsibilities_ (Security IN the Cloud):

_Proposed Controls_:

Identity and Access Management:

Network Security:

Data Protection:

Monitoring and Detection:

Incident Response:

Compliance:

Step 7 - Risk Analysis:

_High Risks_:

_Medium Risks_:

Step 8 - Detection and Response:

Step 9 - Recommendations (Cloud Migration Security Roadmap):

_Pre-Migration (Month 1-2)_:

  1. Cloud security training for teams
  2. Design AWS Organizations structure and account strategy
  3. Define IAM strategy and policies
  4. Design VPC architecture and network segmentation
  5. Select and implement CSPM tool
  6. Establish cloud security baseline (CIS AWS Foundations Benchmark)

_During Migration (Month 3-12)_:

  1. Use Infrastructure as Code (Terraform/CloudFormation) for all resources
  2. Automate security checks in CI/CD (SAST, DAST, IaC scanning)
  3. Enforce encryption at rest and in transit
  4. Implement least privilege IAM
  5. Enable all cloud-native security services (GuardDuty, Security Hub, Config, CloudTrail)
  6. Security testing before production deployment

_Post-Migration (Ongoing)_:

  1. Continuous compliance monitoring
  2. Regular IAM access reviews
  3. Cloud security posture assessments
  4. Penetration testing in cloud environment
  5. Tabletop exercises for cloud IR scenarios

Step 10 - Compliance:

Step 11 - Synthesis:


Reference Materials (Expandable)

Essential Organizations and Resources

NIST (National Institute of Standards and Technology)
CISA (Cybersecurity and Infrastructure Security Agency)
MITRE
OWASP (Open Web Application Security Project)
SANS Institute

Key Standards and Frameworks

ISO/IEC 27001: Information Security Management System

ISO/IEC 27002: Information Security Controls

PCI-DSS: Payment Card Industry Data Security Standard

HIPAA: Health Insurance Portability and Accountability Act (Security Rule)

SOC 2: Service Organization Control 2 (Trust Services Criteria)

GDPR: General Data Protection Regulation

NIST SP 800-53: Security and Privacy Controls

CIS Controls: Center for Internet Security Critical Security Controls

FedRAMP: Federal Risk and Authorization Management Program

Vulnerability Databases

Threat Intelligence Sources

Security Tools and Platforms

Vulnerability Scanning: Nessus, Qualys, Rapid7 InsightVM

SAST: SonarQube, Checkmarx, Veracode

DAST: Burp Suite, OWASP ZAP, Acunetix

SIEM: Splunk, Elastic, Sentinel, Chronicle

EDR: CrowdStrike, SentinelOne, Microsoft Defender for Endpoint

CSPM: Prisma Cloud, Wiz, Orca Security

Certifications

Communities and Resources


Verification Checklist

After completing cybersecurity analysis:


Common Pitfalls to Avoid

Pitfall 1: Checklist Compliance Without Risk Context

Pitfall 2: Perimeter-Only Security

Pitfall 3: Alert Fatigue and False Positives

Pitfall 4: Ignoring Human Element

Pitfall 5: Point-in-Time Assessment

Pitfall 6: Vulnerability Scoring Without Context

Pitfall 7: Security as Blocker

Pitfall 8: Ignoring Supply Chain and Third Parties


Success Criteria

A quality cybersecurity analysis:


Integration with Other Analysts

Cybersecurity analysis complements other perspectives:

Cybersecurity is particularly strong on:


Continuous Improvement

This skill evolves through:


Skill Status: Complete - Comprehensive Cybersecurity Analysis Capability

Quality Level: High - Enterprise-grade security analysis with modern frameworks

Token Count: ~8,500 words (target 6-10K tokens)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.