Back to skill

Security audit

Know your AI

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed CLI wrapper for a Know Your AI security-testing service and its network/API access fits that purpose.

Install only if you intend to connect Codex to Know Your AI. Set KNOW_YOUR_AI_DSN from the official dashboard, treat it as a secret because it includes an auth token, and expect the evaluate command to create remote evaluation runs in that account.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (1)

Dynamic Request Target

Medium
Category
Server-Side Request Forgery
Content
* user input directly into query strings.
 */
export async function gql(parsed, query, variables = {}) {
  const resp = await fetch(`https://${parsed.host}/graphql`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
Confidence
60% confidence
Finding
Request target host is built from a dynamic or untrusted value. If the host is attacker-influenced, this enables SSRF to arbitrary internal or metadata endpoints.

Static analysis

Detected: suspicious.env_credential_access, suspicious.exposed_secret_literal

Environment variable access combined with network send.

Critical
Code
suspicious.env_credential_access
Location
scripts/lib/helpers.mjs:70

File appears to expose a hardcoded API secret or token.

Critical
Code
suspicious.exposed_secret_literal
Location
scripts/lib/helpers.mjs:28