sql-injection-methodology
Pass
Audited by Gen Agent Trust Hub on Oct 16, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONREMOTE_CODE_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill provides complete Python script templates in
references/blind-injection.mdandreferences/union-and-error.mddesigned to automate data extraction. It explicitly instructs the agent to copy, modify, and execute these scripts locally usingpython3to handle complex injection scenarios such as 32-character truncation inEXTRACTVALUEfunctions. - [COMMAND_EXECUTION]: The methodology directs the agent to use various command-line tools for security testing, including
sqlmapfor automated exploitation andcurlfor manual parameter integrity checks. The agent is encouraged to use these tools to interact with remote web servers. - [DATA_EXFILTRATION]: The skill's primary focus is the exfiltration of data from remote databases. It provides detailed procedures for identifying and extracting sensitive information like 'flags' and database schemas through UNION-based, error-based, and blind injection techniques, including out-of-band (OOB) methods using DNSLog services.
- [REMOTE_CODE_EXECUTION]: The documentation includes payloads for achieving code execution on target database servers. Examples include using
xp_cmdshellin MSSQL,DBMS_SCHEDULERin Oracle, andCOPY FROM PROGRAMin PostgreSQL to execute shell commands and establish reverse shells. - [INDIRECT_PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection because the automation scripts provided in the references process untrusted data retrieved directly from target HTTP responses.
- Ingestion points: Data is ingested via the
requestslibrary in the Python scripts when parsing HTTP response bodies (e.g., usingr.textandre.searchfor XPath errors). - Boundary markers: There are no boundary markers or instructions to isolate the data received from the target web server.
- Capability inventory: The agent has the capability to execute Python scripts, run shell commands (
sqlmap,curl), and perform network operations. - Sanitization: The scripts do not implement sanitization or validation of the data retrieved from the target before it is processed by the agent's logic.
Audit Metadata