Auditing IDE¶
Use the Auditing IDE to review a deployed contract and reproduce its behavior. You point it at a deployed contract, it opens a fork of the chain around that contract, and everything you do — sending transactions, reading and writing storage, scanning for issues — happens on that fork, never on the live chain.
Open Trilocore, select your workspace and project, and choose Auditing IDE. Confirm the network, target address and fork block before starting a review. To open an EVM session through the API:
curl -X POST https://api.trilocore.ai/api/v1/bevm/sessions \
-H "Authorization: Bearer $TRILOCORE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"network": "eth", "rpc_url": "https://your-node.example/eth", "target_address": "0xYourTargetContract"}'
If you have not opened a session before, start with the Quickstart.
A typical review¶
- Open a session on the target contract.
- Scan the target for known issue patterns to get a list of candidate findings.
- Pick a candidate and try to reproduce it on the fork with Composer.
- Inspect what the transaction changed — storage, balances, return data — and keep the findings that reproduce.
- Save the relevant execution, its inputs and the finding against the audit. Keep a fork snapshot when you need to return to a particular test state.
Session-bound views read the active session. Check its identity before comparing a storage read with a transaction result; a saved architecture or recording may refer to a different target or earlier state.
Reproduce a behaviour with Composer¶
Composer is where a suspicion becomes a demonstration. Open Composer, enter the target, the function signature and the arguments, and send. The call runs against the fork and you get back the gas used, value deltas, return data, the revert reason if it reverted, and every storage slot that changed with its before and after value.
The behaviour to decide up front is whether sends accumulate:
- Isolated (the default) rolls back after each send, so twenty variants all start from identical conditions. This is the mode for "which of these inputs behaves differently".
- Stateful (
persist: true) commits each send, so step three sees what step two did, and the mined block climbs. This is the mode for a real multi-step reproduction.
Every send becomes a durable execution, so a sequence
you built today can be cited and replayed later. Sends are mutating calls and
require an Idempotency-Key; reuse the same key on a retry
and the stored result is replayed instead of firing a second transaction.
You can also read and write fork storage slots directly — including computing the slot for a mapping key — to set up a precondition before a send or to check a result after it.
Reference: Execution, State and storage.
Read a contract that hides behind one selector¶
Some contracts do not expose ordinary functions. They present one selector, take an encoded program as calldata, and run it with their own instruction set, so a plain disassembly tells you little about what they do.
Open MorphVM on such a target to recognise this kind of contract and decode the program it runs into readable handlers, so you can review what each call actually does.
Reference: State and storage.
Architecture Explorer¶
Open Architecture in the workspace to launch the Architecture Explorer against the session. It answers the governance question who can change what? from the authority settings on the session's fork. How to use it is documented on its own page.
Scan for issues and triage findings¶
Run a scan on the target to check its bytecode for known issue patterns. Each result lands in the session's findings with a severity.
A scan result is a starting point, not a verdict. Treat each one as a lead: try to reproduce it with Composer on the fork, and keep the ones that reproduce. A finding backed by an execution is evidence; a scan hit on its own is a candidate to check.
File a finding against an audit in a workspace and it carries through to the report; workspace and audit findings can also be exported as SARIF for code-scanning tools. See Core concepts.
Reference: Analysis and findings.
Ask Janus AI for a next step¶
With the target session open, choose Trilocore AI agent and Propose calls to generate candidate calls, or send context and a revert reason for an explanation. Review the target, arguments and proposed action before running anything. An explanation is a suggestion to check against the execution evidence; it is not a confirmed finding.
Janus AI explains the workflow and its limits. To work from an external AI client, use the MCP connection guide.
EVM and Solana sessions¶
Choose the network when opening the session; use operations for that chain. EVM transaction examples in this guide do not apply to Solana instructions. For a Solana program, run a Passive scan and use the Solana reference for supported session, program and transaction operations. Active scan and AI call proposals are EVM-only.
Review completeness and unavailable-data messages with each result. A failed request, an empty result and a completed check with no findings have different meanings.
Working with more than one contract¶
Real targets are not one address. A session can hold several contracts in scope — named explicitly when you open it, or added automatically when the target's bytecode references other contract addresses — and your review follows: the Architecture Explorer and the code views work across the whole scope rather than one address at a time.
Reference: Targets and contracts.
Where the work is kept¶
Executions, findings and audit events are durable and attributed to a workspace and project, so an audit remains reconstructable after the session is closed. What is not durable unless you save it explicitly: in-session view state, such as open Composer tabs and local history. Snapshot the fork or file the finding when a result matters.
For a transaction-led case with retained investigation evidence, use Garudon. Use Radar for configured monitoring and Protect for transaction assessments. These workflows have their own scope and limits; an IDE scan does not activate monitoring or enforcement.
Next: Core concepts, or the Endpoint reference for supported API operations.