Skip to content

v2.9.0 — bucket A grande del vault CPTS: 17 detectores que reusan lo que ya se captura

Choose a tag to compare

@salitress salitress released this 04 Dec 05:58
· 7 commits to main since this release

Big bucket-A batch mined from the CPTS vault and folded into palantir's existing
"detect-and-RECOMMEND, never execute" plumbing. 17 new signals/recommenders, all
pure (no network, no subprocess) and testable in --selftest; every hook only adds
findings and next-steps — nothing is executed that was not already.

Flagship (reuse data palantir ALREADY captures)

  • Safe-Spray Planner (badpwdcount-aware) — palantir already parsed the
    lockout policy and already ran --spray --safe; the missing piece was
    combining it with the per-user badpwdcount that nxc --users exposes. Now
    computes the per-account safe budget this window
    (threshold − safety_margin − badpwd[u]) and names at-risk accounts in the
    warning before confirm_creds_spray proceeds.
  • LFI→RCE decision chain — after _lfi_probe confirms an LFI, ONE extra
    read via php://filter/convert.base64-encode/resource=<path> over the typical
    php.ini locations; base64-decoded locally and classified:
    allow_url_include=On → data:// RCE; extension=expect loaded →
    expect:// shell; otherwise → log poisoning (User-Agent / PHPSESSID /
    /proc/self/environ). disable_functions surfaces as a warning.
  • SNMP loot → identities + version→CVE — _snmp_walk_juicy already
    captured sysContact, LanMgr users and installed-software; they were being
    printed and thrown away. Now emails/users feed the unified identity pool and
    every installed-software string crosses the _VERSION_CVES table. Zero extra
    network cost.
  • Version→CVE banner matcher (curated table of 10 CVEs: ProFTPD mod_copy,
    CoreFTP <727, OpenSMTPD ≤6.6.2, BlueKeep, SMBGhost, PRTG <18.2.39,
    ColdFusion 8, OpenSSH <7.8 userenum, vsftpd 2.3.4 backdoor, Shellshock) wired
    into fp_ftp, fp_smtp, fp_ssh, fp_web_slow and fp_snmp.
  • Policy-aware wordlist filter + precise hydra form string — the grep -E
    pipeline in _wordlist_recos now adapts to the REAL pass-policy
    (min_len/complex), and the http-post-form string is built from the
    actual form fields katana parsed (username/password detection + CSRF token
    flagged dynamic), not the placeholder username=^USER^&password=^PASS^.
  • Unified identity pool — finger, SMTP-VRFY/RCPT, SNMP sysContact/LanMgr,
    mail ssl-cert emails and web-crawled emails now funnel through the same
    _merge_extra_identities (email local-part / DOM\user normalization /
    dedup case-insensitive / SIDs dropped) into the SAME ad_users.txt that
    kerbrute/SMB-RID/LDAP already write.

Quick wins (new detectors over data palantir already captures)

  • SPF / TXT → internal IPs + 3rd-party provider map — ip4: IPs in
    RFC1918/CGNAT get promoted to alta findings; include: directives map to
    O365, Google Workspace, Mailgun, SendGrid, Zoho, Atlassian, Salesforce…
  • Cloud-storage detector (passive) — scans crawled HTML for S3 / Azure Blob
    / GCS references; recommends read-only HEAD / ?comp=list / ?prefix=.
  • Subdomain-takeover detector — CNAME + 11-provider can-i-take-over-xyz
    fingerprint table (S3, GitHub Pages, Heroku, Azure, Fastly, Shopify,
    Pantheon, Tumblr, Bitbucket, Readme); one GET per candidate to confirm the
    "unclaimed" substring (confirmado → critica, otherwise alta).
  • Mail ssl-cert + capability harvester — CN/SAN → hostnames worth adding
    to /etc/hosts; emailAddress= → identities to the pool; AUTH=PLAIN
    without STARTTLS/STLS → alta finding "credentials travel in cleartext".
  • NFS nfs-ls sensitive files + UID/GID — cross-ref file names in the
    nfs-ls NSE output against the SMB loot regex + marks UID=0 files; recommends
    useradd -u <uid> when a non-trivial UID would be needed to read a file.
  • MX-based mail-stack classifier — cloud vs self-hosted vs mixto
    routes the recommendation chain accordingly (cloud → o365spray /
    MailSniper instead of pointless hydra smtp against a tenant).
  • IPMI vendor-aware default creds — identifies the BMC vendor
    (Dell/HP/HPE/IBM/Lenovo/Supermicro/Intel/Fujitsu/Oracle) from ipmi-version
    • banners → correct vendor creds + hashcat -m 7300 RAKP recipe with the
      vendor-appropriate mask.

Web passive (pattern-match over katana crawl output — nothing is sent)

  • IDOR candidate detector + JS function-disclosure — classifies param
    values by shape (seq / md5 / sha1 / uuid / b64 / hex) and greps
    crawled .js for the builder (CryptoJS.MD5, btoa, crypto.subtle,
    HmacSHA*). Mass-enum loops only RECOMMENDED (exfil = active).
  • Upload-form bypass recommender — multipart/form-data + file field →
    alta finding + 8-step bypass matrix (double-ext, alt-PHP, Content-Type
    swap, GIF89a, null-byte, polyglot zip/phar, SVG+script, LFI-chain hint).
  • HTTP verb-tampering (OPTIONS enum) — one OPTIONS + one GET; if GET
    returns 401/403 recommends alternate verbs; if Allow lists
    PUT/PROPFIND/TRACE emits the matching bypass tip (webshell upload /
    WebDAV / Cross-Site Tracing).
  • Command-injection candidate recommender — param names that sound like
    shell sinks + root-HTML context detection (strong when "Ping Tool" /
    "traceroute" / "network diagnostic" appears). Emits the operator table +
    blacklist-evasion table (${IFS} / case / rev / b64 / wildcards / Windows
    caret). No active probe.

Gates

py_compile · --version · --selftest · ruff · mypy · SQLi broad-fuzz
sim — all green.

Three items intentionally deferred (cross-host NTLM-relay graph, Snaffler
--spider tiering, PRTG/Splunk/Nagios/ColdFusion/Drupal/GitLab footprints,
stack/transfer/pivot recommenders, AD hardening appendix, LLMNR passive
listener, XXE, policy-aware cracking) + the entire B/C buckets, awaiting a
focused review before implementation.