Argentos security audit

From ArgentAIOS/argentos-core · View interactive version

Argentos security audit is an AI agent skill from the GitHub repository ArgentAIOS/argentos-core. Security audit procedures for ArgentOS marketplace packages. Use when scanning packages, reviewing submissions, auditing for prompt injection, checking VirusTotal results, approving marketplace submissions, or when anyone mentions "security scan", "VT scan", "prompt injection", "audit package", "rev

How to use this skill

Skill file

ArgentOS Security Audit

Three-layer security model for every marketplace package.

The Three Layers

| Layer | Tool | What It Checks |

| --------------------- | --------------------- | ----------------------------------------- |

| 1. VirusTotal | 70+ antivirus engines | Malware, trojans, viruses, PUPs |

| 2. ArgentOS AI Safety | Custom regex scanner | Prompt injection, secrets, dangerous code |

| 3. Manual Review | Human (admin panel) | Quality, usefulness, correctness |

Layer 1: VirusTotal

API: https://www.virustotal.com/api/v3

Rate limit: 4 uploads/min, 500/day (free tier)

Key: stored in Railway env as VIRUSTOTAL_API_KEY

How it works

  1. Package file uploaded to VT /files endpoint
  2. Poll /analyses/{id} every 15s until complete
  3. Check stats.malicious and stats.suspicious
  4. Store permalink: https://www.virustotal.com/gui/file/{sha256}

Interpreting results

Every package's VT badge links to the actual scan report. Not a claim — a verifiable link.

Bulk scanning all packages

cd /Users/sem/code/argent-marketplace
DATABASE_URL="..." bun scripts/scan-all-packages.ts

Rate-limited at 1 per 16s. ~30 min for 54 packages.

Layer 2: ArgentOS AI Safety Scanner

Location: apps/api/src/scanner/custom-scan.ts

Checks performed

SKILL.md validation:

Prompt injection detection (25 patterns):

Instruction override:

Role hijacking:

System prompt extraction:

Hidden instructions:

Data exfiltration:

Privilege escalation:

Destructive operations:

Social engineering:

Secret detection:

Dangerous code:

File size: Max 5MB total content.

Archive extraction

The scanner decompresses .tar.gz files before scanning:

  1. zlib.gunzip() to decompress
  2. Parse tar headers (512-byte blocks)
  3. Extract each file's content
  4. Filter out macOS ._ resource forks
  5. Scan extracted text files

Layer 3: Manual Review

Admin panel: https://marketplace.argentos.ai/admin → Submissions

Review checklist

Approve

Click Approve → creates package in marketplace with VT permalink + argentos_scan_status.

Reject

Click Reject → enter reason → submitter sees the reason on their submission page.

Admin Notifications

When a submission scan completes, an email is sent to ADMIN_EMAIL (default: marketplace@argentos.ai) with:

Submission Flow (User Perspective)

  1. Log in with GitHub at marketplace.argentos.ai
  2. Click Submit a Skill → upload .tar.gz + metadata
  3. Status: scanning → VT + custom scans run async
  4. Status: review (if passed) or stays scanning (if VT slow)
  5. Admin reviews and approves/rejects
  6. If approved: package appears in catalog with badges
  7. If rejected: reason shown, resubmit button available

Resubmit Flow

Submissions in review/rejected/scanning can be resubmitted:

  1. Go to submission detail page
  2. Upload new .tar.gz
  3. All scan results reset
  4. Scans run again from scratch
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.