QuillAudits guide
On-chain security
On-chain security is everything that keeps a deployed protocol and the funds in it safe: the audit, the admin keys and multisigs, the upgrade path, the oracles, live monitoring and incident response. This page explains each one, shows how it has failed in real exploits, and lists what to check.
Last updated November 2026.
01 / 06
Audit
A smart contract audit is an independent review of the code and its design before it holds funds. It finds logic errors, broken accounting and missing access checks while they are still cheap to fix. It covers the commit that was reviewed and nothing that ships after it.
Smart Contract AuditWhat to check
- The audited commit is the deployed commit, and the scope includes periphery contracts and deployment scripts.
- Every fix was reviewed again. A fix is new code.
- The invariants that protect user funds are written down and tested with fuzzing or formal verification.
- Any change after the audit gets a diff review before it ships.
- The report is public and states what was out of scope.
How it has failed
Go deeper:Defense in Depth AuditFormal VerificationPublic audit reports
02 / 06
Admin keys and multisig
Admin keys are the accounts that can pause, mint, upgrade or move funds. An attacker who holds one does not need a bug, because the contract does what it was built to do. A multisig spreads that power across signers, and it only helps when the signers, their devices and the signing process are independent of each other.
OpSec and Multisig AuditWhat to check
- Every privileged role is listed with its holder, and none sits on a single externally owned account.
- The threshold and signer set survive the loss or compromise of any one person or device.
- Signers check the decoded transaction on a hardware wallet instead of trusting what the interface displays.
- Safe modules and guards are inventoried. Each one is a path around the threshold.
- High-impact actions pass through a timelock.
How it has failed
Go deeper:Multisig InspectorMultisig security habits that matterSafe modules and guards explained
03 / 06
Upgrades
An upgradeable contract can have its logic replaced after launch. That makes bugs fixable, and it means the audited code stays the live code only until the next upgrade. Whoever controls the upgrade path, whether a key, a multisig or a governance vote, controls the protocol.
Defense in Depth AuditWhat to check
- Who can upgrade, through which contract and after what delay can be answered from on-chain state today.
- The upgrade path sits behind a multisig and a timelock long enough for users and monitors to react.
- Each new implementation gets a diff audit and a storage layout check, and its initializer cannot be called a second time.
- The upgrade is rehearsed on a fork of live state before it is queued.
- Proxy admin and implementation changes raise an alert.
How it has failed
Go deeper:Security DecisionsWhy a one-time audit isn't enough
04 / 06
Oracles
An oracle is how a contract learns a price or any other fact from outside itself. The contract treats that value as true. Anyone who can move the value or forge the report can borrow, mint or liquidate against it.
DeFi Protocol AuditWhat to check
- Every price source is listed with what it is derived from, and none is a spot price from a pool that one transaction can move.
- Stale, zero and out-of-range values are rejected.
- Signed reports are checked for signer set, signature count and replay. Report signer keys are handled as admin keys.
- Behaviour is defined for a paused feed or a closed market.
- Changing an oracle is a privileged, timelocked action that is reviewed like an upgrade.
How it has failed
Go deeper:What is a blockchain oracle?Oracle risk when markets are closedOracle resolution attacks in prediction markets
05 / 06
Monitoring
Monitoring watches the live contracts and the accounts that control them, and alerts on activity that should not happen. An audit describes the code at one moment. Monitoring covers every block after it, and its value is the time it gives the team between the first abnormal transaction and the last.
Smart Contract MonitoringWhat to check
- Privileged actions raise alerts: ownership transfers, role grants, upgrades, timelock queues and signer changes.
- Protocol invariants are monitored, such as supply against backing, share price jumps and large outflows.
- Oracle deviation and staleness raise alerts.
- Alerts reach a person on call who has the authority to act.
- Coverage extends off-chain to frontends, DNS, servers and signing infrastructure.
Go deeper:On-chain security monitoring explainedWho's watching your servers?QuillMonitor hacks database
06 / 06
Incident response
Incident response is what the team does from the first alert to the post-mortem: confirm, contain, communicate, trace the funds and fix. It works when the steps and the authority to pause were agreed before the incident, because decisions made during an exploit are slow.
Incident ResponseWhat to check
- A pause or guardian path exists, has been tested, and needs fewer approvals than an upgrade.
- A written runbook names who decides, who signs and who talks to users, exchanges and security partners.
- Contacts at exchanges, bridges, stablecoin issuers and security firms are collected before they are needed.
- The runbook has been drilled on a fork.
- The fix is audited before the protocol is unpaused, and the post-mortem is published.
Go deeper:Blockchain ForensicsSecurity Decisions: when something failsAll hack analyses
Latest hack analyses
- Notional Finance $1.73M Free Collateral Integer Overflow Exploit (Explained)Sep 4, 2026
- MAYAChain $1.7M Slash Subsidy Pool Inflation Exploit (Explained)Sep 2, 2026
- Term Labs $8.5M Governance Takeover Exploit (Explained)Sep 2, 2026
- Moonwell $8.7M mMAMO Exchange Rate Inflation Exploit (Explained)Sep 2, 2026
- Harmony $3.2M Cross-Shard Receipt Replay Exploit (Explained)Sep 1, 2026
- Ostium $23.75M Price Report Signer Compromise Exploit (Explained)Jul 21, 2026
On-chain security FAQs
What is on-chain security?
On-chain security is the work of keeping a deployed blockchain protocol and the funds in it safe. It covers the contract code, the admin keys and multisigs that control it, the upgrade path, the oracles it reads, monitoring of live activity, and the response when something goes wrong.
Is a smart contract audit enough to secure a protocol?
No. An audit reviews the code at one commit. It does not cover a compromised admin key, a later upgrade, an oracle that reports a wrong price or a slow response to a live exploit. Those need key management, change control, monitoring and an incident response plan.
What is the difference between on-chain security and on-chain monitoring?
On-chain monitoring is one part of on-chain security. Monitoring detects abnormal activity on live contracts and alerts the team. On-chain security also includes the audit before launch, control of admin keys, safe upgrades, oracle design and incident response.
Who is responsible for on-chain security after launch?
The team that holds the privileged roles. Auditors and monitoring providers supply review and alerts, but the people who can pause, upgrade or move funds are the ones who have to act, so each role needs a named owner.
Where should a team start?
List every privileged role and who holds it, then confirm the audited commit matches what is deployed. Those two checks show most of the exposure. Oracle sources, alerts and a response runbook come next.
Not sure which of the six is your weakest?
Tell us what is deployed and who holds the keys. We will tell you where we would look first.
We respond within 24 hours




