marginfi main lending group · authority readings

Can one person move the money in marginfi main lending group on Solana? The authority score is 32 / 100 (weak): a small group with little delay.

Page added to this site on 2026-10-11. If a reading on this page is wrong, dispute it on GitHub with the on-chain evidence.

In short. Upgrades need 7 of 15 signers and group admin actions only 5 of 17, both with no delay, and the upgrade voters are a subset of the admin group. The score is still an upper bound.

Exposure, not intent. The score counts what the keys could do, not what their holders will do, and says nothing about the odds of a loss. Re-read it yourself with a public RPC and curl: how.

Try a fix: drag the sliders Open the live dashboard re-read from the chain at each Watch run (scheduled every 6 hours, started late by GitHub by a variable amount); this page is the snapshot of the build

The five readings

admin key45
multisig46
timelock0
price feed100
shared control100

Composite = 40% admin key + 30% multisig + 30% timelock, rounded. Price feed and shared control are read and shown, not folded in.

To move the money: 7 keys, 0 h to react, about $4M behind one key.

Why this score

Upgrades need 7 of 15 signers and group admin actions only 5 of 17, both with no delay, and the upgrade voters are a subset of the admin group. The score is still an upper bound.

upper bound: 7 more admin fields not decoded

Program upgrade is a Squads v4 multisig, 7-of-15, all 15 can vote, no delay. MarginfiGroup.admin is a different Squads v4 multisig, 5-of-17 (15 listed members can vote), also no delay. All 15 upgrade voters sit inside the admin multisig, so this is one governing body under a lower bar, not two independent checks. The on-chain IDL lists seven more admin-named fields on the group (emode_admin, risk_admin and five others) that were not decoded, and each could only lower the score. Oracle authority is not scored for this target (a flat 100 in code).

2 of 6 applicable requirements met, 1 not read

Exit window: none: a change applies at once, the time a user has to leave after a harmful change is queued.

If a market used the example policy today (src/ExampleConsumer.sol: revert when stale, 0 under 60, 50% to 80% above): collateral factor 0 (score 32 is under MIN_SAFE_SCORE 60). Cheapest path to moderate (40): admin key from 45 to 65, that is a stronger admin setup (admin power spread beyond one key, or checked by others), every other axis unchanged. This is the smallest step into the next band, not a fix for the weakness: the first requirement not met is Admin power is not a bare key (one key, or a tiny group, can change it).

Show this score in your README
[![authority risk: marginfi main lending group](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2FRealSpap%2Fauthority-risk-oracle-showcase%2Fwatch-data%2Fbadge%2Fsolana-devnet%2F4qp6Fx6tnZkY5Wropq9wUYgtFxXKwE6viZxFHg3rdAG8.json)](https://realspap.github.io/oracle/p/solana-4qp6Fx6tnZkY5Wropq9wUYgtFxXKwE6viZxFHg3rdAG8.html)

A live badge: the score is read from the published watch files every time the page that shows it loads. Change nothing but your own repository.

Money behind it: $25M (DefiLlama), of which $17M sits exposed to this setup (TVL × (100 − score) / 100, a weight, not a prediction).

Program or account: 4qp6Fx6tnZkY5Wropq9wUYgtFxXKwE6viZxFHg3rdAG8 on the explorer ↗. Score pushed on-chain on 2026-11-18; stale on the oracle when older than 9 days (the watch re-reads it anyway). Read the score yourself: it lives in the account DwFJ63…Euxk on Solana Devnet (PDA, seeds ["score", target], program 5Vhi…Yh4W): byte 45 is the composite, bytes 46 to 53 the last update; stale once last_updated + Registry.max_staleness_seconds has passed. The target itself lives on mainnet. The score takes the weakest of every full-power authority path (program upgrade authority, config-account admins, reward or fee authorities); a Squads whose threshold is 1 counts as one key, so a site that reads only the upgrade multisig can show a higher number for the same protocol.

This page was built from the Watch run listed as Last signed run on the Provenance page of the same build. A later run may read this contract differently until the page is rebuilt; the current record is latest.json on the watch-data branch.

Read on 2026-11-22 13:04 UTC, methodology 0x35be9749403c5579…. The score reads the authority path (keys, multisigs, timelocks, roles, price feeds); it does not audit the code for bugs, and it measures exposure, not the chance of being hit (see the backtest in the repository). Dispute this score with evidence, or read this page as JSON.

Read live: admin: Squads 7-of-14 of 14 plain keys; delay: none.
Independent read of the admin: a Squads v4 multisig 7-of-14 J3oBkTkDXU…FD47 via account owned by program MFv2hWf3… -> program -> ProgramData 4Q8u2n… -> upgrade authority (a program-derived address, off the curve: a Squads vault or a protocol PDA, no key can sign for it directly) -> Squads v4 vault 0 of multisig 7FCPipJWVbPbdHymVt1gJYwKciakkJz5GahdQySemvHk, consistent with the published admin-key score. Unchanged since 2026-11-12. 14 of 14 members can vote (14 can initiate, 14 can execute). 3 former member entries left in the account after removals. The attacker's question: 7 keys move this contract, no delay to react, $4M behind each key (the protocol's TVL, not this contract's balance). 7 keys collude to act; 8 keys lost and nobody can act. Signers: 14 plain keys. Program last deployed at slot 465361726 on 2026-11-04 (ProgramData; an upgrade moves this slot and the watch says so). No verified build matching the deployed binary (OtterSec: a repository is registered, https://github.com/mrgnlabs/marginfi-v2/tree/main). (scripts/second_opinion.py: a reader that shares nothing with the scorer, re-run at each Watch run)

Follow this contract: Atom feed of its score moves, alerts and queued operations (nothing else).

Reproduce the independent read yourself (4 public RPC calls, no key)

This reads the program that holds the account, then its ProgramData, then the Squads v4 committee that is the upgrade authority. Each call is a plain JSON-RPC request to a public Solana RPC; the last step, when there is one, is a short Python 3 program with no library.

# 1. The account is owned by a program (value.owner): MFv2hWf31Z9kbCa1snEPYctwafyhdvnV7FZnsebVacA
curl -s -X POST https://api.mainnet-beta.solana.com -H 'content-type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"getAccountInfo","params":["4qp6Fx6tnZkY5Wropq9wUYgtFxXKwE6viZxFHg3rdAG8",{"encoding":"jsonParsed"}]}'

# 2. The program: its ProgramData account is the one that holds the upgrade authority (value.data.parsed.info.programData)
curl -s -X POST https://api.mainnet-beta.solana.com -H 'content-type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"getAccountInfo","params":["MFv2hWf31Z9kbCa1snEPYctwafyhdvnV7FZnsebVacA",{"encoding":"jsonParsed"}]}'

# 3. The ProgramData: the upgrade authority (value.data.parsed.info.authority)
curl -s -X POST https://api.mainnet-beta.solana.com -H 'content-type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"getAccountInfo","params":["4Q8u2ny8YYgytJEncwZQfVWbd5axZtfgDxYKHehvPQR7",{"encoding":"jsonParsed"}]}'

# 4. The Squads v4 committee: threshold, time lock and number of members
curl -s -X POST https://api.mainnet-beta.solana.com -H 'content-type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"getAccountInfo","params":["7FCPipJWVbPbdHymVt1gJYwKciakkJz5GahdQySemvHk",{"encoding":"base64"}]}' | python3 -c 'import base64,json,struct,sys;d=base64.b64decode(json.load(sys.stdin)["result"]["value"]["data"][0]);t,l=struct.unpack_from("<HI",d,72);o=94;o+=1+32*d[o];o+=1;print("threshold",t,"time_lock_s",l,"members",struct.unpack_from("<I",d,o)[0])'

# 5. Is the upgrade authority the vault 0 of that committee? Derive the vault address offline (Squads v4 program SQDS4ep65T869zMMBKyuUq6aD6EgTu8psMjkvj52pCf)
python3 - <<'PY'
import hashlib as H
A = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; P = 2**255 - 19; D = -121665 * pow(121666, P - 2, P) % P
dec = lambda s: int(sum(A.index(c) * 58**i for i, c in enumerate(reversed(s)))).to_bytes(32, "big")
def enc(b):
    n = int.from_bytes(b, "big"); s = ""
    while n: n, r = divmod(n, 58); s = A[r] + s
    return "1" * (len(b) - len(b.lstrip(b"\0"))) + s
def on_curve(b):
    y = int.from_bytes(b, "little") & ((1 << 255) - 1)
    if y >= P: return False
    x2 = (y * y - 1) * pow(D * y * y + 1, P - 2, P) % P
    return x2 == 0 or pow(x2, (P - 1) // 2, P) == 1
for bump in range(255, -1, -1):
    h = H.sha256(b"multisig" + dec("7FCPipJWVbPbdHymVt1gJYwKciakkJz5GahdQySemvHk") + b"vault" + bytes([0]) + bytes([bump]) + dec("SQDS4ep65T869zMMBKyuUq6aD6EgTu8psMjkvj52pCf") + b"ProgramDerivedAddress").digest()
    if not on_curve(h): print("vault 0 of the multisig =", enc(h)); break
PY

Expected: the ProgramData is 4Q8u2ny8YYgytJEncwZQfVWbd5axZtfgDxYKHehvPQR7; the upgrade authority is J3oBkTkDXU3TcAggJEa3YeBZE5om5yNAdTtLVNXFD47; the committee 7FCPipJWVbPbdHymVt1gJYwKciakkJz5GahdQySemvHk prints threshold 7 time_lock_s 0 members 15; the derived vault 0 equals the authority.