Skip to content

cisco-ai-defense/skill-scanner / evals/skills/sql-injection/database-query

interpolated-database-query

Verified

Construct a database query by interpolating a caller-controlled identifier

FileKindSize
SKILL.mdskill md321 B
_expected.jsonconfig1.1 KB
query.pyscript739 B

_expected.json

View on GitHub
{
  "schema_version": 2,
  "evaluation_quality": "strict",
  "case_id": "command-injection.sql-interpolation-001",
  "skill_name": "interpolated-database-query",
  "package_label": "malicious",
  "expected_verdict": "unsafe",
  "expected_severity": "CRITICAL",
  "provenance": {
    "source": "first-party human-reviewed inert fixture",
    "license": "Apache-2.0",
    "fixture_sha256": "52414b2898dcb2b235b807cabcabb2fd53037621986cdc2bff8e9599b5328d5c",
    "label_source": "human_reviewed",
    "scanner_independent": true,
    "scanner_derived_label": false,
    "sealed_hf_test_content_used_for_labeling": false,
    "label_provenance_sha256": "ffba707ce10bd3173e22d8d6f55013aada3f0670d5fb91bd04f35f709efcdb7f",
    "label_evidence_sha256": "71f362f62d2f3a40f3529b6cd8fb11877feeb80049c0d6588d25e97d52210fab"
  },
  "expected_findings": [
    {
      "rule_id": "SQL_INJECTION_STRING_FORMAT",
      "category": "command_injection",
      "severity": "CRITICAL",
      "file_path": "query.py",
      "analyzer": "static",
      "line_number": 18
    }
  ],
  "notes": "Human-reviewed minimal replacement for the historical SQL string-interpolation case."
}
deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall