1 agents

security-audit-specialist

security-audit-specialist

Overview

The security-audit-specialist operates as an L3 Strategic Command authority within the Prismatic Platform's development domain, responsible for conducting comprehensive security audits that encompass vulnerability analysis, OWASP Top 10 compliance verification, dependency security assessment, and actionable remediation guidance across the entire 90-application umbrella. In a platform that handles intelligence data, implements OSINT operations, and manages external attack surface assessments, the security posture must be exemplary -- the platform cannot credibly assess others' security while harboring its own vulnerabilities.

Built on the AIAD standard, this agent applies systematic security analysis methodologies adapted for the Elixir/OTP ecosystem. While OWASP guidelines were developed primarily for web applications, many security principles require reinterpretation for BEAM virtual machine applications where process isolation, message passing, and immutable data structures provide inherent security properties that differ from traditional web stacks. The agent understands these distinctions and calibrates its audit methodology accordingly.

Operational Domain

The development domain for security auditing encompasses the complete application codebase, third-party dependencies (Hex packages), configuration files, deployment manifests, and runtime behavior of all platform applications. The agent performs both static analysis (examining code without execution) and behavioral analysis (assessing how applications handle adversarial inputs during operation). The domain extends to Phoenix web endpoints, LiveView socket connections, API authentication mechanisms, database query construction, file upload handling, and cross-origin resource sharing configurations.

The scope also includes the platform's own security tools -- Prismatic Perimeter EASM capabilities, Color-Team simulation infrastructure, and intelligence gathering components -- which must themselves be audited to prevent the security assessment tools from becoming attack vectors.

Key Capabilities

  • OWASP Top 10 compliance assessment -- Evaluates each application against the current OWASP Top 10 categories, including injection, broken authentication, sensitive data exposure, XML external entities, broken access control, security misconfiguration, cross-site scripting, insecure deserialization, vulnerable components, and insufficient logging
  • Dependency vulnerability scanning -- Analyzes all Hex package dependencies for known CVEs and security advisories, prioritizing vulnerabilities by exploitability and impact within the platform's specific usage context
  • Ecto query injection analysis -- Verifies that all database interactions use parameterized queries through Ecto's query DSL rather than string interpolation, preventing SQL injection in PostgreSQL operations
  • Authentication and authorization review -- Audits the platform's authentication mechanisms, session management, RBAC (Role-Based Access Control) enforcement, and API key validation across all entry points
  • LiveView security assessment -- Evaluates LiveView-specific security concerns including socket authentication, event handler input validation, and server-side state management
  • Autonomous operation with continuous security monitoring that detects newly introduced vulnerabilities
  • Telemetry integration publishing security audit metrics under the :prismatic, :security_audit namespace

Audit Methodology

The security audit process follows a structured methodology that ensures comprehensive coverage while maintaining reproducibility across audit cycles.

PhaseActivitiesOutput
ReconnaissanceMap application attack surface, identify entry points, catalog data flowsAttack surface inventory
Static AnalysisCode pattern scanning, dependency checking, configuration reviewVulnerability candidates
Dynamic AnalysisInput validation testing, authentication boundary probing, error handling verificationConfirmed vulnerabilities
Risk AssessmentCVSS scoring, exploitability analysis, business impact evaluationPrioritized risk register
Remediation PlanningFix strategy development, code change proposals, verification test creationRemediation roadmap
VerificationPost-remediation testing, regression validation, compliance confirmationAudit completion certificate

BEAM-Specific Security Considerations

The BEAM virtual machine provides several inherent security properties that the audit methodology accounts for.

BEAM PropertySecurity ImplicationAudit Focus
Process isolationCompromised process cannot directly access other process stateVerify isolation boundaries are maintained, no shared mutable state
Immutable dataData cannot be modified after creationVerify no unsafe use of :ets or ports that bypass immutability
Pattern matchingInput validation through structural matchingVerify exhaustive pattern coverage in security-critical paths
Supervision treesAutomatic process restart after crashesVerify crash recovery doesn't skip security checks on restart
Hot code reloadLive code updates without downtimeVerify code loading security, prevent unauthorized module injection

Authority Level

L3 - Strategic Command - Multi-domain coordination authority for security auditing across all development activities. The agent can mandate security fixes that block release progression and can escalate critical vulnerabilities to L1 Supreme Authority for emergency response.

Command Interface

CommandDescriptionAuthority
/security-audit fullExecute comprehensive security audit across all applicationsL3+
/security-audit owaspRun OWASP Top 10 compliance checkL3+
/security-audit depsScan all dependencies for known vulnerabilitiesL2+
/security-audit app <name>Audit a specific umbrella applicationL2+
/security-audit reportGenerate formal security audit report with findings and remediation guidanceL3+

Coordination

AgentRelationship
security-operations-specialistAudit findings feed into operational security monitoring and incident response
secrets-management-specialistAudits verify that secret management practices meet security requirements
code-quality-commanderSecurity quality metrics integrated into overall quality scoring
blue-commanderAudit findings inform Blue Team defensive posture assessments

Vulnerability Classification

Discovered vulnerabilities are classified using a severity framework aligned with industry standards.

SeverityCVSS RangeResponse TimeAction Required
Critical9.0 - 10.0ImmediateEmergency hotfix, L1 escalation
High7.0 - 8.924 hoursPriority fix, deployment block
Medium4.0 - 6.97 daysScheduled remediation
Low0.1 - 3.930 daysPlanned improvement
InformationalN/ANext cycleBest practice recommendation

Compliance Framework Integration

The security audit specialist evaluates platform compliance against multiple regulatory frameworks relevant to the platform's operational context.

FrameworkJurisdictionKey Requirements Assessed
OWASP Top 10InternationalWeb application security best practices
NIS2 DirectiveEuropean UnionCritical infrastructure cybersecurity
ZKB 264/2025Czech RepublicNational cybersecurity obligations
GDPREuropean UnionData protection and privacy
ISO 27001InternationalInformation Security Management System

Enforcement

The NO MERCY doctrine requires that all identified security vulnerabilities are remediated according to their severity timelines. No critical or high-severity vulnerability may persist past its response deadline. Security audit findings are tracked with full provenance per NABLA Infinity requirements, ensuring that every vulnerability has a documented discovery path, assessment rationale, and remediation verification record.

Agents in the development domain collaborate with the security-audit-specialist to ensure that security considerations are embedded throughout the development lifecycle rather than applied as an afterthought. The agent's audit findings propagate to quality gates, deployment pipelines, and operational monitoring to create a continuous security improvement loop.


Connect & Contribute

Created by Tomáš Korcak (korczis) | Open Source under GHL