About Ritik Agarwal
I am an independent smart contract security researcher and security engineer based in Ahmedabad, India. I specialize in identifying high-severity business-logic vulnerabilities, invariant violations, and EVM execution edge cases in decentralized protocols.
Background & Philosophy
My engineering background started in general software development and hackathons before shifting to EVM internals. Rather than viewing smart contracts as static text to run through automated scanners, I view them as state machines where discrete state transitions, precision rounding, and reentrancy execution sequences can lead to catastrophic insolvency.
I realized early on that writing functional code is only half the engineering challenge; rigorously proving that code cannot be forced into invalid economic states is where the real depth lies. This realization prompted my transition from application development to deep offensive security research and formal invariant testing.
Audit Methodology
- Invariant Mapping & Intent Modeling: Before looking for bugs, I study the protocol's mathematical architecture. What are the core invariant properties? Can total borrowed assets ever exceed supplied liquidity? Can exchange rates ever decrease? What state assumptions does the contract rely on?
- Adversarial Threat Modeling: I systematically interrogate state transitions: flash loans, oracle latency, unexpected token behaviors (fee-on-transfer, rebasing, ERC-777 callbacks), integer truncation across casting boundaries, and transaction ordering dependencies.
- Deterministic Proof-of-Concept (PoC): Speculative vulnerability reports provide little value. Every high or medium vulnerability I document is paired with a reproducible Foundry test suite that mathematically validates the exploit path, calculates exact capital loss, and validates the mitigation.
Technical Stack
- Languages: Solidity (v0.8.x), Go (Golang), Python, JavaScript / TypeScript.
- Security & Testing Frameworks: Foundry (Forge, Cast, Anvil), Slither, Echidna, Hardhat.
- Core Protocols & Domains: AMMs (Uniswap v2/v3/v4), ERC-4626 Tokenized Vaults, Money Markets / Lending (Compound/Aave models), Account Abstraction (ERC-4337), Software Supply-Chain Security.
- Cryptography: Merkle Trees, ZK Circuit Arithmetization (R1CS), Polynomial Commitments.
Contact
Whether you are preparing for a mainnet launch, need an independent security audit, or want to discuss zero-knowledge research, feel free to reach out:
- Email: ritikagarwal570@gmail.com
- GitHub: github.com/Ritik-Agarwal50
- Twitter / X: @RitikkAgarwalll
- LinkedIn: linkedin.com/in/ritik-agarwal-bb0934182
- Resume: Download PDF