Why is post-deployment monitoring important?
Our post-deployment smart contract monitoring service provides real-time anomaly detection and automatic alerting for your DeFi protocol. We have seen too many projects that passed an audit but were hacked a month after deployment, losing millions. With over 10 years in blockchain development and 50+ projects monitored, we know an audit is a security snapshot. It does not protect against new vulnerabilities after dependency updates or market shifts. Continuous post-deployment smart contract monitoring is the only way to detect threats early.
We develop a monitoring system that tracks on-chain activity in real time, detects anomalies, and alerts your team via Telegram, Slack, or PagerDuty. Our monitoring delivers alerts 4x faster than free tools (500ms vs 2-3 seconds) (Wikipedia on Reentrancy attack).
Threats and anomaly detection
Reentrancy attacks in real time
The classic Reentrancy attack cost TheDAO $3.6M in 2016. We monitor call sequences and trigger on suspicious patterns: external calls before state update, multiple calls from one address. Our detection can stop an exploit before funds are drained.
Oracle manipulation
Chainlink is the de facto standard, but manipulation is possible during sharp price moves. We track DEX prices and compare with the oracle. A discrepancy >5% generates an alert, preventing unfair liquidations.
TVL and volume anomalies
A sudden TVL drop may signal an exploit. We monitor liquidity pools and staking balances, flagging anomalies like a 500% increase in withdraw requests within an hour.
How is monitoring set up in 6 steps?
- Contract audit – Study ABI, identify critical events and dependencies (0.5–1 day).
- Rule design – Write conditions per event: thresholds, patterns, blacklists (1–2 days).
- Node integration – Deploy full node or use archival node, connect event listener (0.5–1 day).
- Alert configuration – Choose channels and severity: Critical (immediate), High (1 hour), Medium (daily) (0.5 day).
- Testing – Fork mainnet, simulate attacks, verify alerts (1–2 days).
- Launch and calibration – Go live, manual analysis first 48 hours to calibrate thresholds (2 days).
Case study: Lending protocol on Polygon
We set up monitoring for a lending protocol. The main threat was flash loan attacks on reserve contracts. We added a rule: if a single transaction has >10 `borrow` calls with different collaterals and total exceeds $100k — immediate alert. In the first two months, we recorded 3 attack attempts, all blocked before damage occurred, saving an estimated $2M+ in potential losses.
Our monitoring service starts at $250/month per contract, and enterprise plans go up to $2,000/month. This investment pales in comparison to the potential losses from a single exploit, which can exceed $1M. Clients have reported an average savings of $500K per year by preventing attacks.
Alert severity levels
We categorize alerts by severity with corresponding response times:
| Severity |
Response time |
Example |
| Critical |
15 minutes |
Reentrancy attack in progress |
| High |
2 hours |
Oracle price deviation >5% |
| Medium |
24 hours |
TVL drop >10% |
How does our monitoring compare to free solutions?
Our monitoring outperforms free tools like Etherscan alerts in key areas:
| Criteria |
Etherscan Alerts |
Our monitoring |
| Notification delay |
2–3 seconds |
~500 ms (4x faster) |
| Custom logic |
Basic events only |
Conditional thresholds, combined rules, blacklists |
| Multi-chain support |
Separate per network |
Single dashboard for all networks |
| False positive filtering |
No |
Automatic aggregation, deduplication |
| Historical data |
Latest transactions only |
TimescaleDB with trend charts |
The value of post-audit monitoring
An audit does not protect against upgrades, new OpenZeppelin bugs, or social engineering. Continuous monitoring is a second line of defense for smart contract protection. Our monitoring, with 5+ years on the market, has saved clients from multiple exploits.
Typical monitoring setup mistakes
-
Missing rarely-called events — e.g.,
OwnershipTransferred. If an attacker changes the owner, you learn only after they have already withdrawn funds. Include all admin events in monitoring.
-
Too high thresholds — often set large deviation (20%) to avoid noise, but gives the hacker enough time. Optimal: 5% for prices, 10% for volumes.
-
Ignoring cross-chain risks — if a protocol runs on 3 networks, monitoring must be on each network, otherwise a bridge attack goes undetected.
Deliverables
- Scripts/configs for monitoring (Ansible roles, Docker images)
- Grafana monitoring dashboard with graphs of key metrics (TVL, transaction count, gas price)
- Documentation: rule descriptions, instructions for adding new contracts
- Access to a Telegram bot with live notifications
- 7 days post-launch support (threshold calibration, rule adjustments)
- Optional: premium 24/7 support with 30-minute response time guarantee
Contact us for a preliminary assessment of your project — it's free. We will help set up monitoring that truly protects your funds.
How Do We Find What the Compiler Misses?
When a protocol loses $197M through a flash loan attack on a function that auditors reviewed live — it's not an accident. It's a systemic gap in methodology. Our experience shows: vulnerabilities live in a contract for over a year, while the compiler remains silent. We restructured the audit process to catch such cases before deployment.
What Static Analysis Won't Find?
Slither is the standard first tool. It finds reentrancy, integer overflow (in older Solidity versions), improper use of tx.origin, variable shadowing, uninitialized storage. On a real project, Slither produces dozens of warnings, of which critical ones are 0‑2. The rest is informational noise.
Slither won't find logical vulnerabilities. If withdraw correctly checks balance and correctly updates state, but business logic allows double deduction through two different code paths — Slither stays silent.
Mythril uses symbolic execution: builds a graph of all possible execution paths and searches for reachable states violating properties. Works well on isolated contracts. On a protocol of 20 contracts with cross‑contract calls — path explosion, analysis hangs or returns false positives.
Both tools are mandatory as a first pass. But they don't replace manual analysis.
Fuzzing: Where Echidna and Foundry Find Real Bugs
Echidna is a property‑based fuzzer from Trail of Bits. The idea: formulate contract invariants as Solidity functions (echidna_invariant), Echidna generates random call sequences and tries to break the invariant.
Example invariant for a lending protocol:
function echidna_total_assets_ge_liabilities() public view returns (bool) {
return totalAssets() >= totalLiabilities();
}
Echidna will find a sequence deposit → borrow → liquidate → repay that violates this invariant. You can't build such a case manually — too many combinations.
Foundry fuzzing (forge test --fuzz-runs 100000) is easier to integrate if the team is already on Foundry. Supports stateful fuzzing via invariant tests. In a real project: auditing a vault contract, Foundry fuzzed for 40 minutes and found an edge case where maxWithdraw returned a value larger than actual balance at a specific shares/assets ratio after several donations. Hardhat unit tests missed it — they didn't have that combination of parameters.
Medusa (from Trail of Bits, newer than Echidna) supports corpus‑guided fuzzing and runs faster on large contracts. If the codebase exceeds 5000 lines of Solidity — we look at Medusa.
How Invariants Help Identify Critical Vulnerabilities
Formal verification proves that the contract satisfies specifications for all possible inputs — not for N random ones, but mathematically for all. Tools: Certora Prover, K Framework, Halmos.
Certora works with CVL (Certora Verification Language): write rules and invariants, the Prover translates them into SMT formulas and checks via Z3/CVC5. MakerDAO, Aave, Uniswap use Certora in CI/CD pipeline — every PR is automatically verified.
Limitations: doesn't work with unbounded loops, struggles with hash functions and signature verification. For contracts with simple math (AMM, lending) — excellent. For contracts with arbitrary external calls — difficult to write sufficiently complete specifications.
Formal verification makes sense for contracts that: manage over $50M, are rarely updated, have clearly formalizable invariants. For fast‑iterating products — the cost‑benefit ratio doesn't favor verification.
What Attack Vectors Do Junior Auditors Miss?
Storage collision in proxy pattern. Transparent proxy and UUPS use specific slots for implementation address (EIP‑1967). If an implementation accidentally declares a variable in slot 0 that overlaps with proxy storage — we get silent override. Slither won't catch this if proxy and implementation are in different files.
Read‑only reentrancy. Classic reentrancy guard protects against state changes during recursive calls. But if an external contract reads state via a view function mid‑transaction — guard doesn't help. Years ago, Curve pools became an attack vector precisely through this: an external protocol read get_virtual_price during a reentrancy‑vulnerable state of Curve.
Oracle manipulation via TWAP. Spot price is a standard target for flash loan attack. TWAP is harder to manipulate, but not impossible: on low‑liquidity Uniswap v2 pairs, TWAP can be shifted over several blocks with enough capital. Proper protection: use Chainlink as primary oracle with TWAP as fallback, with deviation threshold check.
Gas griefing on unbounded loop. A function iterates over an array of users. Attacker adds thousands of addresses with zero balances — the function's gas cost rises to the gas limit, making it inaccessible. Protection: pull pattern instead of push, limit array lengths, batch processing with position tracking.
Front‑running on MEV. Transaction is visible in mempool before inclusion in block. MEV bot sees addLiquidity for a significant amount, inserts its own swap before it (sandwich attack). For AMM this is part of the model. For protocols with price functions — require minAmountOut / deadline parameter and its mandatory verification.
Structure of a Full Audit
-
Scope definition and automated analysis (1‑2 days). Fix commit hash, compiler version, list of out‑of‑scope items. Run Slither, Mythril, Aderyn. Triage: separate real critical bugs from false positives. Build contract dependency map.
-
Manual analysis (5‑15 days). Each contract line by line. Special attention: all external and public functions, all transfer/call/delegatecall, all places where state changes before a check or after an external call, all math operations with user inputs. On average, 95% of found vulnerabilities are logical, not technical.
-
Fuzzing and testing (2‑5 days). Echidna or Foundry invariant tests for critical invariants. Fork mainnet tests — verify behavior in real environment with real oracles. For example, in 4 days fuzzing finds on average 3 edge cases not covered by unit tests.
-
Report and mitigation. Report with severity (Critical/High/Medium/Low/Informational), attack vector description, PoC code for Critical/High. Developers fix, auditors perform re‑audit of fixes.
| Severity |
Examples |
Requires re‑audit? |
| Critical |
Drain funds, unauthorized ownership transfer |
Always |
| High |
Manipulation, DoS on key functions |
Always |
| Medium |
Incorrect behavior on edge cases |
Recommended |
| Low |
Gas inefficiency, typos in events |
Optional |
Audit in CI/CD
Common practice for mature protocols: Slither and Aderyn run in GitHub Actions on every PR. Certora Prover — on merge to main. This doesn't replace a full audit before deployment, but catches regressions.
# .github/workflows/audit.yml
- name: Run Slither
uses: crytic/[email protected]
with:
target: 'src/'
slither-args: '--filter-paths "test|mock|script"'
Checklist of mandatory checks before deployment
- All external functions have access controls (
onlyOwner, onlyRole)
- Use
SafeERC20 for external tokens
- No
delegatecall to unknown addresses
- Reentrancy check in all functions with external calls
- Presence of
minAmountOut and deadline in AMM functions
- Use of a trusted oracle (Chainlink) with deviation threshold
Audit Tools Comparison
| Tool |
Type of Analysis |
What It Finds |
Limitations |
| Slither |
Static |
Reentrancy, integer overflow, access control |
Misses logical vulnerabilities |
| Mythril |
Symbolic execution |
Reachable states violating properties |
Path explosion on large codebases |
| Echidna |
Fuzzing (property‑based) |
Invariant violations |
Requires writing invariants |
| Certora |
Formal verification |
Mathematical proof of properties |
Doesn't work with hashes/signatures |
Deliverables
- Full report in PDF with CVSS scores for each vulnerability
- PoC code for all Critical and High (reproducible in test environment)
- Remediation recommendations with code examples
- Re‑audit after fixes (up to two iterations)
- Brief guide for developers on ongoing operation
- Post‑deployment support for 30 days (consultations and incident analysis)
Timeline
Audit of a simple token or NFT contract — 3‑5 business days. DeFi protocol with lending/AMM — 2‑4 weeks. Full stack with multiple protocols, cross‑chain, proxy upgrades — 4‑8 weeks. Re‑audit of fixes — 3‑7 days separately.
Our team has 7+ years of experience in smart contract security, having audited over 100 projects. We guarantee we won't miss any known attack vectors — we use licensed versions of Slither and best fuzzer configurations. Assess your project — we will analyze your code for free and provide a commercial offer within 2 days. Order an audit with quality guarantee and get a discount on re‑audit for repeat customers.