Skip to content
We manage your security to weather the AI storm →

Security review · February 2026

Hedera Connector for USDT0

USDT0 engaged Guardian to review the security of their USDT0 Connector. From the 24th of November 2025 to the 7th of January 2026, a team of 2 auditors reviewed the source code in scope.

See how Guardian runs a stablecoin security audit.

Published
Review window
November 24, 2025 to January 7, 2026
Rounds
Main Review, Remediation Review
Language
Solidity
Chains
Hedera
Sector
Stablecoins
  • 0 Critical
  • 0 High
  • 0 Medium
  • 1 Low
  • 7 Informational

1 resolved · 5 acknowledged · 2 pending

Scope

Overview

USDT0 engaged Guardian to review the security of their USDT0 Connector. From the 24th of November 2025 to the 7th of January 2026, a team of 2 auditors reviewed the source code in scope.

Findings 8

Main Review

7 findings
  1. L-01 Low Locked Initial Supply In HTSConnectorUpgradeable Validation Resolved
    Location
    HTSConnectorUpgradeable.sol: 135C26-135C52
    Round
    Main Review

    Description

    The createHTSToken mints the initialTotalSupply to the treasury, which is the HTSConnector contract. There is no function to transfer this initial supply out from the treasury.

    All transfers in the contract assume mint-then-transfer for new supply or pull-then-burn, but nothing can move the initial treasury balance. If _tokenInitialTotalSupply > 0, these tokens are effectively stranded.

    Recommendation

    While initialTotalSupply is set to 0 for mainnet in the deployment script, it is advisable to also enforce at the contract level that the HTSConnectorUpgradeable has no initial supply that would be locked.

    Resolution

    USDT0 Team: Resolved.

  2. I-01 Informational Missing Validation Of Key Lengths Validation Acknowledged
    Location
    KeyHelperUpgradeable.sol: 130C1-131C44
    Round
    Main Review

    Description

    getKeyValueType in KeyHelperUpgradeable contract accepts arbitrary bytes for ED25519 and SECP256K1 keys without validating length.

    HTS expects ED25519 public keys to be 32 bytes and compressed SECP256K1 public keys to be 33 bytes. Passing an invalid length will cause HTS precompile calls to fail.

    The function is only used by the current HTSConnectorUpgradeable during the createHTSToken call, where the \$._adminKey is provided as a SECP256K1 key. However, _adminKey is set during initialization and can be assigned to a byte array of any size.

    Recommendation

    Consider adding length checks in the getKeyValueType function to ensure that all ED25519 keys are 32 bytes and all SECP256K1 keys are 33 bytes, or alternatively enforcing that _adminKey is 33 bytes during initialization.

    Resolution

    USDT0 Team: Acknowledged.

  3. I-02 Informational Warning About New HTS Precompiles Informational Acknowledged
    Location
    HederaTokenService.sol: 11
    Round
    Main Review

    Description

    As introduced in HIP-646, fungible tokens on Hedera can include metadata. While this was previously unsupported by smart contracts, a new proposal, HIP-1028, enables metadata support for fungible tokens.

    According to HIP-1028, a new HTS precompile will be deployed at address 0x16c, while 0x167 will remain available for backward compatibility.

    The current HTSConnector uses the precompile at 0x167 and does not support the metadata key or metadata features for fungible tokens. It is important to be aware of the breaking changes if USDT0 decides to use this metadata feature in the future.

    Recommendation

    Be aware of this situation.

    Resolution

    USDT0 Team: Acknowledged.

  4. I-03 Informational Conflicting transferToken Documentation Documentation Acknowledged
    Location
    IHederaTokenService.sol: 149-153
    Round
    Main Review

    Description

    IHederaTokenService interface's transferToken documentation mentions "(positive amount) or receiving (negative amount)", while the parameter docs state "Non-negative value to send. a negative value will result in a failure".

    Recommendation

    Update the NatSpec comment on the IHederaTokenService interface.

    Resolution

    USDT0 Team: Acknowledged.

  5. I-04 Informational Zero Amount Operations Are Not Rejected Early Validation Acknowledged
    Location
    HTSConnectorUpgradeable.sol: 194-196
    Round
    Main Review

    Description

    _debit, _credit, mintTokenPublic and burnTokenPublic function in the HTSConnectorUpgradeable accept _amountLD == 0 and only guard against values exceeding int64.max.

    HTS burn/mint require positive non-zero amounts, so zero results revert in later precompile calls. This wastes gas and degrades UX without a clear error at the top of the call path.

    Recommendation

    Require _amountLD > 0 and revert early with an error.

    Resolution

    USDT0 Team: Acknowledged.

  6. I-05 Informational contract_Id Keys Break Freeze And Wipe Warning Pending
    Location
    HTSConnectorUpgradeable.sol: 113-122
    Round
    Main Review

    Description

    On Hedera, a contractID key is not compatible with contracts that execute via delegatecall Hedera explicitly documents that contractID requires "the code in the active message frame to belong to the contract" whereas delegatableContractId exists specifically to support delegatecall.

    Make sure that the HTS precompile will recognize the used wallet as satisfying a contractID key or change it if needed.

    This is important for USDT0 because it could break the ability to respond to incidents, stolen funds, sanctions/compliance actions, or any emergencies.

    Recommendation

    If needed change HTS token creation to delegatableContractId is specifically for contracts that might execute logic via delegatecall.

    Resolution

    USDT0 Team: Pending.

  7. I-06 Informational Token Keys Cannot Be Updated Via Connector Superfluous Code Acknowledged
    Location
    HederaTokenService.sol: 139C1-144C6
    Round
    Main Review

    Description

    HederaTokenService.sol defines an updateTokenKeys function. However, this function is marked as internal and is never invoked by HTSConnectorUpgradeable, so it cannot be called. As a result, updating token keys via precompile invocation is not possible, even if that was the original intent.

    Recommendation

    Either add an access-controlled external function that allows updating keys through the connector, or remove the updateTokenKeys internal function from HederaTokenService.sol.

    Resolution

    USDT0 Team: Acknowledged.

Remediation Review

1 finding
  1. I-01 Informational Fix If I-08 Is Not In Final Commit Informational Pending
    Location
    HTSConnectorUpgradeable.sol: 113C1-120C26
    Round
    Remediation Review

    Description

    The comment in issue I-08 states that the issue was fixed in acf07bcea340c1ca8ed039399c816adf8a851a33. However, this fix is not reflected in the final commit. The freeze and wipe keys still use CONTRACT_ID.

    Recommendation

    No change is required if it was later decided to continue using CONTRACT_ID despite the comment indicating a fix. Otherwise, consider applying the fix to the latest commit.

    Resolution

    USDT0 Team: Pending.

More from USDT0

All 51 reports
  1. Canary Sponsored DVN Migration

    0 findings No findings
  2. Zero Network - USDT & XAUT Deployment

    0 findings No findings
  3. OFT Contracts Upgrade - Fast lane

    3 findings 3 findings: 2 low, 1 informational
  4. MultiHopComposer Review

    7 findings 7 findings: 4 low, 3 informational

Put your code through the same review.

This review started with a conversation about scope. Tell us what you are building and we will plan yours with you.

Get a quote