Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

solana-dlmm

Latest version: vgit:96be9c2b5565db720cd81e3d873614f2d5b7598e

Overview

Last scanned
20 Nov 2026
AI: Suspicious Agent skill Publisher: pgen0x
18 Stars
4 Forks
1 Versions
Python Repo language

Scan summary

solana-dlmm was last scanned on 20 Nov 2026 at commit 96be9c2b. Risk score 42 of 100 (medium). No malicious behavior was detected.

  • Releases: Single version.
  • Findings: 3 rules fired in commit 96be9c2b (21 instances: 12 medium, 9 low). The score describes this commit only.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
96be9c2b 3 rules fired

Rules fired in 96be9c2b: 3

Findings

12 Medium 9 Low

Findings for commit 96be9c2b. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

A bundled script sends a secret or contacts a collection endpoint

A script shipped with the skill sends a credential or secret value into a network call, posts to a data-collection endpoint (a paste or request-capture service), or fetches a cloud metadata address.

MEDIUM

Encoded content in a skill

LOW

Skill mentions tunnel, paste or webhook services

LOW
Checking access…

🔒 Create a free account to see all 21 findings with descriptions and instance counts

The score describes 96be9c2b; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Solana DLMM Liquidity Provision Skill

Overview

Automated lifecycle of a Solana Meteora DLMM concentrated liquidity position: Screen Pools (Fee/TVL, TVL, Volatility, Base Token Safety Gates) → Deploy Single-Sided SOL LP Position → Monitor Active Bins / PnL → Exit Out-of-Range or SL/TP positions → Account realized yields.

Scripts Directory

<profile>/skills/solana-dlmm/scripts/ (symlinked to this repo's assets/skill/scripts/ by install.sh — edit here, it's live everywhere)


Tools & Commands

Automated signals (--from-pool, --from-signal and --from-batch) use sol_bidask in every mode, including turnover and pulse. The pipeline enforces this even when a stale prompt supplies another --strategy. It targets roughly 35% downside coverage, subject to bin-step and rent limits; filled bins still acquire token exposure. Manual runs without a signal retain strategy overrides. Venue toggles come from the daemon configuration; exit thresholds and position budgets come from SOUL.md with the script defaults as fallback. Do not infer live settings from old reports.

1. dlmm_pipeline.py — Ingestion Pipeline

Purpose: Screens Meteora's pool discovery API and deploys into the best candidate. Command: python3 ~/.hermes/profiles/<profile>/skills/solana-dlmm/scripts/dlmm_pipeline.py --mode <casual|multiday>

Two modes with isolated position budgets (2 slots each, max 4 total):

--mode casual (30m timeframe — volume spike plays, hold 2-6h):

  • TVL >= $5k, Fee/TVL >= 0.3%, Mcap >= $250k, Holders >= 500, Max 2 positions

--mode multiday (24h timeframe — quality holds, target 24h+):

  • TVL >= $50k, Fee/TVL >= 1.0%, Mcap >= $1M, Holders >= 1,000, Max 2 positions

Shared filters (both modes):

  • Organic Score >= 75, Volatility 0–15
  • Momentum: reject if 5m \<= -3% or 1h \<= -7% (tightened 2026-07-20 after downtrend entries dominated losses)
  • Downtrend gate: reject if 6h \<= -10% or 24h \<= -20%
  • Verified + Jupiter shield (fail-open if API omits field)
  • Dev balance \<= 20%, top-10 holders \<= 60%, no freeze/mint authority, no critical warnings

Flags: --analyze-only (screen only, non-blocking), --pool <ADDR>, --strategy <NAME>

AI context (--pick-context --mode <mode>): prints local time, cached Redis positions and learned weights in one read-only command. No RPC, screening or deploy. Missing position metadata leaves the mode count null. This is ranking context; the pipeline rechecks live holding, cooldown, sizing and risk gates before entry. The DLMM webhook advertises Hermes's terminal toolset (terminal plus process management), covering the context and pipeline commands. Other sessions use their configured toolsets; webhook reports still pass through the receipt guard.

AI pick (--from-pool <pool address> --audit --mode <mode>): the webhook agent's one deploy command. The pipeline reads the pick's record verbatim from the scanner's delivery journal (newest prepared row carrying that pool in that mode, at most 30 minutes old; SOLANA_DELIVERY_PATH overrides the default ~/.local/state/azimuth/solana_deliveries.jsonl) and then takes the --from-signal path unchanged. Hand-copied JSON was the dominant way an AI turn broke (copy slips, shell quoting, and silently retyped base_mint/dev values). --audit runs audit_token.py on the base mint first: FAIL prints ❌ REJECT audit_token: <reason> and stops before any live gate; UNKNOWN is unavailable evidence and continues. --from-signal '<record JSON>' remains the fallback when no delivered record is found.

Batch mode (--from-batch '<payload array>' --mode <mode>): consumes the azimuth daemon's whole signal batch and replaces the LLM agent's pick step — deterministic conviction re-rank (dev-exit / global-fees / PVP hard rejects, GMGN boosts+penalties, darwinian signal weights from Redis), sol_bidask strategy enforced in code, and runner-up fallback when a live gate (bin-array rent, entry timing) rejects the top pick. Used by the daemon's DEPLOY_CMD direct mode.

LLM candidate fallback: when a live gate rejects the pick before submission, try the next candidate in the same batch. A timeout or an unverified deployment requires checking the process and on-chain positions before another attempt.

Entry memory gates (all modes, incl. --from-signal / --from-batch):

  • Symbol cooldown (sol:dlmm:cooldown:<SYMBOL>) and pool cooldown (sol:dlmm:cooldown:pool:<POOL>) — skip while set.
  • Pool memory: skip a pool whose journaled closes (sol:dlmm:history:pool:<POOL>) show >= 2 past closes netting negative PnL — this pool already cost us.
  • Repeat-deploy churn guard: the 3rd deploy into the same pool within 24h sets a 12h pool cooldown.
  • Every deploy snapshots the winning candidate's entry signals into the position record (signal field) — feeds the darwinian weights (see dlmm_weights.py).
2. dlmm_monitor.py — Position Monitor

Each real monitor tick checks PnL with dlmm_executor.js pnl-onchain <POOL> <POSITION>. This read-only command values native inventory and unclaimed fees at active-bin spot against the actual initial SOL transfer. It accepts only a SOL-only entry with complete funded-bin coverage and no later position transactions. A fresh verified mark supplies ordinary stops, trailing peaks, range and unclaimed fees, replacing the separate active-bin command. The read has a three-second deadline; unsupported or unavailable proofs retain indexed PnL and active-bin fallback. Catastrophic-read protection reuses that result rather than querying twice. A native confirmed loss can reach exit rules even before age three minutes; an unavailable proof keeps the existing young-position protection and mature-position retry. The mark excludes rent, network and exit costs and is not realized profit or NAV. Pool and position reads are sequential confirmed RPC reads, not an atomic snapshot.

Purpose: Monitors all open positions in Redis and checks SL/TP or Out-of-Range limits. Command: python3 ~/.hermes/profiles/<profile>/skills/solana-dlmm/scripts/dlmm_monitor.py Exits managed:

  • Stop-Loss: SOUL Hard Stop-Loss (script default -8%); emergency floor is 3 percentage points lower and bypasses grace/AI holds.
  • Rug velocity gate: 5m price change \<= -20% (RUG_M5_PCT) — emergency close NOW, same class as the emergency SL floor. Fail-open on missing 5m data.
  • Take-Profit: Price rises >= +50% from entry price.
  • Out of Range: asymmetric fuse by pool geometry (sol_bidask is single-sided, so the two OOR directions mean opposite things). SOL-side OOR (fully converted to SOL, PnL frozen) gets the patient SOUL Max Out of Range Minutes fuse (currently 45m) plus a profit lock — pnl_pct >= +1.5% closes immediately, banking the frozen win. Token-side OOR (full token bag, decaying every tick) gets the fast SOUL OOR Downside Max Minutes fuse (currently 5m); one one-shot green-5m-candle grace extension, then closes via the dump path. Orientation must be positively known (meta.sol_is_x) — unknown defaults to the patient fuse.
  • Fee-pace-death exit: after 45m age, unclaimed-fee growth < 0.02% of position value across a 30m window (≈ \<1%/day pace) — rotate dead capital out. Skips trailing-armed winners, re-baselines on fee claims, fail-open on missing Portfolio-API fee data.
  • Thin Liquidity: Live pool liquidity drains below $7k floor (SOUL.md Min Exit Liquidity) — exit before the position strands. Re-checked every cycle; fail-open on fetch error.
  • Fast-out dump exit: trailing TP armed + 5m price change \<= -3% + PnL >= +0.3% lock — realize the profit immediately instead of letting the dump gap through the ratchet floor between ticks. Fail-open on missing 5m data.
  • Trailing TP: activates at SOUL Trailing TP Trigger (currently 4%); exit floor is a profit ratchet (peak ≥5% locks ≥+3%, ≥10% locks ≥+7%, ≥20% locks 70% of peak, ≥30% locks 75%; below that, flat Trailing TP Drop from peak).
  • Emergency SL floor: 3pp below Hard Stop-Loss — always closes immediately, bypassing the SL grace, AI holds, and indicator timing. SL grace itself only applies to a young (\<15m) in-range position with fee/TVL ≥ 10%.
  • Rug blacklist: a realized close \<= -30% PnL, OR any close whose reason contains "rug" (e.g. the velocity gate above, regardless of realized PnL — a fast reaction can book a near-zero loss on a token that just cratered) — blocks the mint for RUG_BLACKLIST_TTL_DAYS (default 7d) via one TTL'd key per mint, sol:dlmm:blocklist:mint:<MINT>, and the deployer for DEV_BLOCKLIST_TTL_DAYS (default 30d) via one TTL'd key per wallet, sol:dlmm:blocklist:dev:<WALLET>. Both checked by the pipeline before every deploy. Each side was a permanent set once — the mint until 2026-08-07, the deployer until 2026-08-12 — because discovery recycles a small ticker pool and a small set of launchpad-scale deployers, so a monotonic blocklist eventually starves the mode of candidates, silently (every batch just reports no candidate). The deployer window is the longer of the two: a wallet that rugs once can mint again, which makes the claim stronger — but not permanent. A re-blacklist refreshes the window, so a repeat rug keeps its ban.
  • Note: --report-only is read-only — never claims/closes/redeploys (incl. fee_compounding & partial_harvest strategies) — with ONE exception: an emergency close (SL floor breach / rug velocity / thin liquidity) executes even in report-only, because the cron runs report-only and the agent hop adds minutes. Pass --no-enforce for pure reporting.
  • Every close is journaled to <profile>/memories/dlmm_closes.jsonl (uniform schema, API-verified PnL, carries the entry-signal snapshot) AND to per-pool memory sol:dlmm:history:pool:<POOL> (last 10 closes, 30d expiry — the pipeline's "past losses" skip gate reads this and fires when 2+ closes net at or below POOL_MEMORY_NET_FLOOR_PCT, default -10%; it fired on ANY negative sum until 2026-08-07, which rejected pools that had merely churned to a fraction of a percent below break-even; the daemon ships a summary as prior_closes/prior_net_pnl_sol on future signals for that pool). Audit journal vs Meteora portfolio API ground truth with python3 .../scripts/dlmm_reconcile.py [--days 30].
  • A "Low yield" close also sets a 4h pool cooldown (sol:dlmm:cooldown:pool:<POOL>) — fee flow that already decayed doesn't recover within the 1h symbol cooldown, so block the pool itself from immediate re-entry.
  • Each run ends by triggering dlmm_weights.py --quiet (self-guarded, never fails the monitor).

Close GUARD (overrides all exits above): NEVER close when in_range AND fee_per_tvl_24h >= 10% AND no hard rule triggered. Do not discretionarily close an empty-triggered_rules position unless 5m <= -3% OR break_even_days >= 5. Hard floor pnl < -25% and thin-liquidity always close. (Full policy: SOUL.md §9 "Close GUARD".) The --override-close path enforces this in code and refuses a healthy close unless --force.

AI HOLD blocks --override-close: If ai_hold_active: true in the report, do NOT call --override-close — the code will exit(2) and refuse. Only exceptions: (1) pass --force for genuine manual override, or (2) pnl_pct <= -25% (hard SL emergency, hold auto-bypassed by code). If conditions worsened to emergency, use --force and explain in --reason.

Who sets an AI hold: the sol_dlmm_ai_exit_review cron (every 5m). It is the LLM's ONLY authority over exits — it may defer a non-emergency close by 10-20 minutes and may do nothing else; it cannot close, claim, or deploy. Its pre-run script (<profile>/scripts/sol_dlmm_exit_review_gate.py, installed from assets/hermes/scripts/) emits {"wakeAgent": false} unless a position sits in a band approaching a suppressible rule, so most 5m ticks cost no model call. Those bands must stay ahead of the rules: the 20s loop closes on the same tick a rule fires, so a review that waited for triggered_rules would always arrive after the close. Every hold is journaled to <profile>/memories/ai_holds.jsonl and increments sol:dlmm:position:<addr>:ai_hold_count (7d TTL), which log_close stamps onto the close record as ai_holds — without that field, held and unheld closes are indistinguishable afterwards and the whole arrangement is unmeasurable.

Exit chokepoint: dlmm_monitor.py is the ONLY authorized closer — it sets DLMM_CLOSE_AUTH after the GUARD/rules pass. A raw node dlmm_executor.js close <addr> is REFUSED (exit 3) unless --force/DRY_RUN. The gateway agent and the spot fast-monitor must never close DLMM positions directly.

3. dlmm_weights.py — Darwinian Signal Weights

Purpose: Learns which entry signals predict positive cash after fees and matched rent refunds. Uses cached accounting proofs for single-position roots closed in the last 60d; missing proofs, recenter chains and bounds that cannot establish win/non-win are excluded. Needs >= 10 examples with both wins and non-wins. Produces a signed lift per signal; each weight then steps 35% of the way toward 1.0 + 3 × lift, clamped [0.3, 2.5]. Persists weights, lifts and outcome_basis to <profile>/memories/signal_weights.json, mirrored to Redis sol:dlmm:signal_weights, which the deploy pick reads when ranking candidates. The first cash recalc preserves existing weights and smoothing; later recalcs keep the six-hour guard. This measures historical separation, not future profit.

Two properties are deliberate, both applied 2026-08-13 after an audit found 10 of 14 weights sitting exactly on a clamp after 108 recalcs:

  • Mean-reverting, not ratcheting. A weight is a function of the CURRENT lift, so evidence that fades pulls it back toward neutral. The old ×1.05/×0.95 quartile ratchet compounded over stable quartile membership and could only ever end on the rails, after which no new evidence could move it.
  • The learned set equals the applied set. SIGNAL_NAMES here must stay identical to WEIGHTED_SIGNALS_HIGHER_IS_BETTER in dlmm_pipeline.py. Six non-directional signals (volatility, mcap, tvl, fee_pct, swap_count, bot_holders_pct) were learned but never applied, and because their lift went through abs() it was never negative — so they monopolised the boost quartile and pushed the signals that do score toward the floor. They are retired and pruned from stored state. Adding a signal here means teaching the pipeline to apply it, not just appending a name.

A weight near 1.0 is ambiguous on its own — "no evidence" and "evidence of no effect" both land there — which is why the lifts map is published alongside it and --show prints both columns. Commands:

  • python3 ~/.hermes/profiles/<profile>/skills/solana-dlmm/scripts/dlmm_weights.py --show — print current weights
  • python3 .../dlmm_weights.py --force — recalc now (normally self-guarded to once per 6h, auto-run by the monitor)
3b. dlmm_realized.py — Realized-PnL Reconciliation

Purpose: Turns the close journal into money. dlmm_closes.jsonl's pnl_sol is the monitor's MARK one tick before the close, and a mark can be fiction: three closes on 2026-08-17..18 were booked at -100.00% while the on-chain flows show every deposit returned in full. This pass writes <profile>/memories/dlmm_realized.jsonl — one line per closed position, carrying Meteora's aggregated deposit / withdrawal / fee flows in SOL, so realized_sol holds no price opinion of ours. Append-only and idempotent (a position is fetched once).

apply_realized() is the LP join used by dlmm_stats.py and the Hermes proposal brief: they prefer realized_sol over the journal figure and stamp pnl_basis (realized | mark). A position the reconciler has not fetched keeps its mark and is counted as unmeasured — never as 0.0. dlmm_weights.py instead requires proved cash outcomes from cached accounting.

Measured over the 7d to 2026-08-19, the journal mark overstated the week's loss many times over versus the on-chain flows. Nearly all of that gap is the three phantom rows; the rest is the mark systematically overstating BOTH wins and losses. Commands:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • GitHub pgen0x/azimuth/skill

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229