The AgentToken contract implements an ERC20-like token with custom tax mechanisms, bot protection, and Uniswap V2 integration for liquidity. It utilizes OpenZeppelin's upgradeable patterns for robust architecture. The audit identified high-severity issues related to slippage control in tax-swapping mechanisms and significant centralization risk in critical administrative functions. Medium-severity concerns include the complexity of bot protection logic and the use of unlimited approvals. Several informational findings were also noted.
On-chain security analysis — is it a scam or legit?
Is SIBYL by Virtuals Safe?
Not verified
This record has not gone through deep verification and is not being monitored. The score is a dated snapshot — the token’s risk can change at any time.Own this token? Put it under verification →The AgentToken contract implements an ERC20-like token with custom tax mechanisms, bot protection, and Uniswap V2 integration for liquidity.
Read the full analysis- Ownership not renounced — owner is an EOA
- Top-10 concentration > 20%
- Liquidity not locked, but no owner/deployer address holds LP — market-depth risk, not rug risk
- LP top1 unlocked holder = 100.0%
- LP top3 unlocked holders = 100.0%
Exact factors
- Ownership NOT renounced — owner is an EOA (single private key)
- Top-10 concentration > 20% (52.3% total → 29.9% effective; 15.0% in EOAs, 37.3% in contracts — mild)
- Liquidity not locked, but no owner/deployer address holds LP — market-depth risk, not rug risk
- LP top1 unlocked holder = 100.0% (independent LP — depth risk, pool = 94% of DEX liquidity)
- LP top3 unlocked holders = 100.0% (independent LP — depth risk, pool = 94% of DEX liquidity)
Security Checklist
as of audit · Sep 12Holders
as of audit · Sep 12, 2026- Contractstreasury, vesting, bridge, staking37.3%
- Walletsanonymous holders, free to sell15.0%
- Everyone elsethe rest of the supply47.7%
How holder types affect the score
Share held by contracts — treasury, vesting, bridge or staking — is discounted against share held by wallets when the score is computed: a contract cannot decide to sell the way an anonymous holder can, though it can still be drained or voted to sell. Effective concentration is the figure the risk score is actually calculated from.
Holder balances as recorded by the audit of Sep 12, 2026
Liquidity
as of audit · Sep 12The LP tokens of the analysed pool are not locked or burned, so whoever holds them can withdraw that liquidity.
0x31e8…8130No privileged address appears among these holders: the unlocked liquidity sits with independent providers, not with the deployer.
Security Findings
MediumComplex Bot Protection Logic with keccak256(address.code)
Not confirmed by static analysis (the model's own reading of the source).M-01
keccak256(address.code)Issue
Not confirmed by static analysis (the model's own reading of the source). The _checkBotProtection function utilizes keccak256(address.code) to identify valid callers. While addLiquidityPool checks for code.length, addValidCaller does not. If keccak256("") (the hash for an empty code, typical of an EOA) is added to _validCallerCodeHashes, EOAs could potentially bypass bot protection. Furthermore, relying on address.code can be complex and potentially lead to unexpected behavior, especially with contracts deployed within the same transaction or during specific contract lifecycle stages.
Fix
Review the bot protection logic carefully. Ensure that _validCallerCodeHashes cannot contain keccak256("") unless EOAs are explicitly intended to bypass protection. Consider alternative, more robust methods for bot detection or whitelisting, such as role-based access control or specific contract interfaces, rather than relying solely on code hashes, which can be brittle.
Status
Unresolved
Mediumtype(uint256).max Approvals for Uniswap Router
Not confirmed by static analysis (the model's own reading of the source).M-02
type(uint256).max Approvals for Uniswap RouterIssue
Not confirmed by static analysis (the model's own reading of the source). The _addInitialLiquidity and _swapAndLiquify functions grant type(uint256).max (unlimited) approval to the _uniswapRouter for AgentToken and pairToken. While _uniswapRouter is expected to be a trusted Uniswap V2 router, unlimited approvals are generally discouraged as a security best practice. If the _uniswapRouter contract were ever compromised or replaced with a malicious one (as per H-02), it could potentially drain all approved tokens from the AgentToken contract.
Fix
Where possible, use specific, limited approvals instead of type(uint256).max. For _swapAndLiquify, approve only the exact amountToSwap. For initial liquidity, if type(uint256).max is deemed necessary for ongoing operations, ensure robust access control and monitoring for the _uniswapRouter address.
Status
Unresolved
MediumLack of Slippage Control in _swapAndLiquify
Not confirmed by static analysis (the model's own reading of the source).M-03
_swapAndLiquifyIssue
Not confirmed by static analysis (the model's own reading of the source). The _swapAndLiquify function, responsible for swapping collected tax tokens for ETH, uses IUniswapV2Router02.swapExactTokensForETHSupportingFeeOnTransferTokens without specifying a minAmountOut parameter. This omission exposes the swap to significant slippage, front-running, and sandwich attacks, potentially leading to a substantial loss of value for the protocol's collected taxes.
Fix
Implement a minAmountOut parameter for the swapExactTokensForETHSupportingFeeOnTransferTokens call. This value should be calculated based on a reasonable slippage tolerance (e.g., 0.5% - 1%) at the time of the transaction. Consider using a price oracle or a time-weighted average price (TWAP) to determine a safe minAmountOut if precise control is needed, or allow the owner to set a dynamic slippage tolerance.
Status
Unresolved
MediumCentralization Risk with setUniswapRouter
Not confirmed by static analysis (the model's own reading of the source).M-04
setUniswapRouterIssue
Not confirmed by static analysis (the model's own reading of the source). The setUniswapRouter function allows the contract owner to change the _uniswapRouter address to any arbitrary address. If the owner's private key is compromised or the owner acts maliciously, they could set a rogue router contract. This rogue router could then be used to drain tokens from the AgentToken contract during subsequent _swapAndLiquify operations or other interactions, leading to a complete loss of funds.
Fix
Implement a multi-signature wallet for the owner address to control critical functions like setUniswapRouter. Additionally, consider a time-lock mechanism for such sensitive changes, allowing users to react to a potentially malicious update. Restrict the _uniswapRouter to a whitelist of trusted router addresses if possible.
Status
Unresolved
InfoMissing Events for Critical State Changes
Not confirmed by static analysis (the model's own reading of the source).I-01
Issue
Not confirmed by static analysis (the model's own reading of the source). Several administrative functions that modify critical contract parameters, such as setProjectTaxRecipient, setProjectBuyTaxBasisPoints, setProjectSellTaxBasisPoints, setSwapThresholdBasisPoints, setUniswapRouter, and setBotProtectionDurationInSeconds, do not emit corresponding events. This lack of event emission hinders transparency, makes off-chain monitoring and auditing of administrative actions difficult, and can obscure important changes to the contract's behavior.
Fix
Emit events for all administrative actions that modify critical state variables. This provides a clear, immutable log of changes, improving transparency and enabling better monitoring and accountability.
Status
Unresolved
InfoUnused CALL_GAS_LIMIT Constant
Not confirmed by static analysis (the model's own reading of the source).I-02
CALL_GAS_LIMIT ConstantIssue
Not confirmed by static analysis (the model's own reading of the source). The constant CALL_GAS_LIMIT is declared in the contract but is not utilized anywhere within the provided source code. This might indicate leftover code from previous iterations, a planned feature that was not implemented, or an oversight.
Fix
Remove unused code to reduce contract size and improve readability. If it's intended for a future feature, consider adding a comment explaining its purpose.
Status
Unresolved
Analysis
AI Copilotas of audit · Sep 12The contract demonstrates a solid architectural foundation by leveraging OpenZeppelin's upgradeable contracts (7.1 Architecture). Code security (7.2 Code Security) benefits from standard ERC20 implementations and a reentrancy guard for the swap function. However, the lack of slippage control in the _swapAndLiquify function (H-01) exposes collected taxes to significant value loss. The bot protection logic (M-01) is complex and relies on keccak256(address.code), which can be brittle. Access control (7.3 Access Control) is generally well-managed with Ownable2StepUpgradeable and onlyOwnerOrFactory modifiers.
The contract includes economic mechanisms for project taxes on buys and sells, with an automated swap-and-liquify feature (7.4 Economic). This design aims to sustain the project's treasury. However, the absence of slippage protection in the automated swap (H-01) directly impacts the economic stability by potentially reducing the value of collected taxes. Governance (7.5 Governance) is centralized with an owner and _factory role, which is common for initial phases. The setUniswapRouter function (H-02) presents a significant centralization risk, allowing the owner to change a critical external dependency to a potentially malicious address. External interactions (7.6 External) with Uniswap V2 are standard but lack robust error handling for slippage.
The contract is designed as an upgradeable proxy using OpenZeppelin's Initializable and Ownable2StepUpgradeable patterns (7.7 Upgrades). The _disableInitializers() in the constructor and the initialize function adhere to best practices for upgradeable contracts, minimizing common upgrade-related risks. The use of Ownable2StepUpgradeable for ownership transfers further enhances upgrade safety. No immediate upgrade safety issues were identified.
Prioritize addressing the high-severity findings by implementing robust slippage control for the automated tax swap and strengthening access control for critical administrative functions like setUniswapRouter.
For the setUniswapRouter function, consider a multi-signature wallet and a time-lock mechanism. Review and simplify the bot protection logic, ensuring it is resilient against bypasses. Additionally, enhance transparency by emitting events for all administrative actions that modify critical contract parameters.
Contract & Record
Free for any token on the record. It links to this page and always shows the current score and the date it was checked.
- Sep 12, 202644Medium
Score changes are recorded as dated snapshots — history is append-only and cannot be edited.
Would You Like a More Detailed Audit of SIBYL by Virtuals?
Our AI-powered scanner gives you a deeper, real-time smart contract analysis — free, with every scoring factor shown.
Get Detailed Audit Is this your token? Add your links and get it Verified