softstack has completed an extended security audit of the Trusset Core Protocol, introducing the ERC-3643 Lending suite and bringing the total assessment to 38 resolved findings across seven smart contract suites.
Client: Trusset
Project: Trusset ERC-3643 Lending (Core Protocol extension)
Industry: RWA / Tokenized Securities / On-Chain Lending
Blockchain: EVM-compatible networks
Service: Smart Contract Security Audit
Audit Date: September 16, 2026
Tokenizing real-world assets is only one part of building on-chain financial infrastructure. Making those assets usable as collateral introduces another layer of complexity.
When regulated securities become part of automated lending markets, smart contracts must handle more than lending and borrowing. Identity restrictions, compliance-controlled transfers, collateral management, liquidation processes, and financial accounting must work together without compromising the integrity of the underlying assets.
This is where Trusset's ERC-3643 Lending infrastructure comes in.
Following our initial security assessment of the Trusset Core Protocol, softstack conducted an extended review covering the newly introduced lending architecture.
The result: 21 additional findings identified, all 21 resolved, and zero open findings remaining in the updated audit report.
About Trusset
Trusset is a Berlin-based infrastructure provider developing the credit layer for tokenized real-world assets.
Rather than operating as a tokenization platform, Trusset enables existing tokenization platforms and asset issuers to integrate lending capabilities into their offerings through a single API.
This allows investors to borrow against tokenized assets they already hold, while licensed financial institutions act as lenders of record.
The infrastructure is designed to support the entire lending lifecycle, combining automated credit markets, configurable risk parameters, identity verification, compliance enforcement, and collateral management.
Depending on the underlying security token and lending configuration, collateral can be locked by freezing tokens directly in the holder's wallet or held in escrow by the lending smart contract.
Clients retain ownership of their smart contracts, data, and governance. Trusset does not hold client assets or private keys and does not act as a lender or become a party to the underlying loan.
Its latest addition extends these lending capabilities to ERC-3643 security tokens.
The New Addition: ERC-3643 Lending
ERC-3643, commonly associated with the T-REX security-token framework, provides an architecture for permissioned tokens with identity and compliance controls.
These capabilities are particularly relevant for tokenized securities, where transfers may be subject to investor eligibility requirements or other restrictions.
However, integrating such assets into lending protocols creates additional challenges.
Traditional DeFi lending typically assumes that collateral tokens can be transferred or liquidated according to the protocol's internal rules.
With ERC-3643 tokens, external compliance agents, identity registries, and token-level restrictions can influence those operations.
Trusset's ERC-3643 Lending suite addresses this through a dedicated lending architecture incorporating:
- Freeze and escrow-based collateral adapters for regulated assets.
- Overcollateralized lending markets and configurable risk parameters.
- Liquidity-provider accounting and interest-rate models.
- Dutch-auction liquidation mechanisms.
- A protocol reserve (insurance fund) with settlement reimbursement.
- An operator-managed lending vault.
- Market curator governance with delayed adoption mechanisms.
The result is an architecture designed to connect permissioned security-token infrastructure with automated credit markets.
For our security team, the key question was whether these interconnected components maintained their intended security properties under both normal and exceptional conditions.
Security Audit Scope
Our extended assessment focused on the ERC-3643 Lending contracts deployed on EVM-compatible blockchain networks.
The reviewed components included the lending markets, factories, lending vaults, collateral adapters, liquidation infrastructure, oracle contracts, protocol reserve, interest-rate model, and supporting libraries.
The engagement combined manual source-code review with automated security testing.
Particular attention was given to:
Collateral and Compliance Enforcement
Verifying that external token-level permissions and compliance operations cannot create inconsistencies between the actual collateral available and the amount recognized by the lending protocol.
Liquidity and Interest Accounting
Reviewing share calculations, interest accrual, withdrawals, and accounting behavior during exceptional conditions, including liquidity losses.
Liquidation and Settlement
Analyzing Dutch-auction pricing, liquidation execution, proceeds distribution, and delayed settlement.
Protocol Reserve Integrity
Verifying that reserve coverage and subsequent liquidation proceeds are accounted for correctly without double-crediting liquidity or incorrectly consuming reserve funds.
Access Control and Upgradeability
Reviewing privileged roles, administrative operations, governance transitions, and upgradeable contract behavior.
Key Security Findings
The ERC-3643 Lending assessment identified 21 security issues.
Three findings were classified as High severity, with the remaining issues distributed across Medium and Low severity categories.
Several findings illustrate why lending protocols require security reviews that go beyond common vulnerability patterns.
1. Liquidity-Provider Share Accounting
One High-severity finding concerned liquidity-provider share accounting after a lending pool experienced a complete loss.
The original implementation could leave historical shares in a state where they continued to affect subsequent deposits.
Under certain conditions, this could allow a previous liquidity provider to claim value belonging to new depositors.
The remediation introduced share generations, ensuring that shares from a previous, fully depleted pool cannot interfere with newly deposited liquidity.
This distinction is essential in lending markets where liquidity balances may change significantly during liquidations or bad-debt events.
2. Protocol Reserve Reimbursement
Another High-severity finding affected the interaction between liquidation timeouts and protocol reserve reimbursement.
The protocol reserve is designed to provide coverage to lending pools when expected liquidation proceeds are insufficient or delayed.
However, if the reserve compensates a pool and the liquidation is subsequently settled, both transactions must be reconciled correctly.
The identified issue could result in incorrect accounting and depletion of the protocol reserve.
Trusset addressed this by introducing tracking and reimbursement of reserve advances when delayed liquidation proceeds are received.
The correction prevents reserve coverage and subsequent settlement proceeds from being counted twice.
3. ERC-3643 Collateral Lock Enforcement
A third High-severity finding concerned interactions between the lending protocol and external T-REX compliance agents.
ERC-3643 security tokens may support multiple authorized agents with permissions to freeze or transfer tokens.
This creates a security consideration when collateral is locked through one adapter while another authorized party can interact directly with the underlying token.
The review identified circumstances in which external token operations could leave the lending market's recorded collateral inconsistent with the actual collateral state.
The remediation introduced live collateral reconciliation to ensure that the market accounts for changes made through external compliance-controlled token operations.
This is particularly relevant to institutional lending infrastructure, where compliance functions and financial smart contracts must interact reliably.
Additional Security Improvements
Beyond the High-severity findings, the assessment covered several important areas of lending protocol correctness.
These included interest accrual and liquidity-provider accounting, liquidation price validation, oracle deviation controls, vault performance-fee calculations, curator adoption, administrative ownership changes, and liquidation settlement.
These mechanisms are closely connected.
A lending protocol may have correctly implemented access controls and still experience financial losses because of an accounting inconsistency or an unexpected interaction between otherwise valid contract operations.
Our assessment therefore focused not only on individual functions but also on the financial and security invariants that must hold across the protocol.
Audit Results
The latest ERC-3643 Lending assessment concluded with the following results:
| Severity | Findings | Final Status |
|---|---|---|
| Critical | 0 | — |
| High | 3 | All fixed |
| Medium | 12 | All fixed |
| Low | 6 | All fixed |
| Total | 21 | 21 fixed |
Following implementation of the recommended mitigations, softstack performed a follow-up assessment to verify the changes.
All 21 findings were marked as resolved in the final report.
Latest audited commit: 873ab2a0a52cc1c32fd9523553cb32da67a55ef3
Full audit report: softstack Trusset Core Protocol security audit report
The Complete Trusset Core Protocol Assessment
The ERC-3643 Lending review builds on our previous engagement covering the smart contract infrastructure supporting Trusset's tokenized asset lending and related financial operations.
With the additional lending suite included, the complete security assessment now covers 7 smart contract suites across 5 distinct codebases.
A total of 38 security findings were identified throughout the extended engagement:
- Critical: 0
- High: 13
- Medium: 17
- Low: 8
All 38 findings have been addressed, with no open issues remaining in the final report.
The updated assessment was finalized on September 16, 2026.
The review covers EVM-compatible smart contracts; non-EVM implementations included in the ERC-3643 Lending repository were not part of this assessment.
Why Security Matters for Institutional RWA Lending
The expansion of real-world asset tokenization into automated lending introduces security challenges that traditional DeFi implementations do not always encounter.
In permissionless lending, collateral ownership and transferability are typically managed within a relatively predictable set of token interactions.
For regulated securities, these assumptions can change.
Identity registries, token compliance agents, issuer-controlled operations, and transfer restrictions introduce additional dependencies that must remain consistent with the lending protocol's internal accounting.
These considerations become particularly important when lending infrastructure is integrated into existing tokenization platforms and financial institutions remain responsible for the underlying lending relationships.
Trusset's role as an infrastructure provider separates the technical execution of lending operations from the regulated financial institutions acting as lenders of record.
As a result, security assessments must consider not only conventional smart contract vulnerabilities but also the interactions between compliance enforcement, collateral locking, liquidation execution, and financial accounting.
The Trusset engagement demonstrates how independent security testing and iterative remediation can help address these challenges during the development of more complex digital asset lending infrastructure.
Continuing Our Collaboration with Trusset
Our work on the ERC-3643 Lending suite represents the latest stage of our ongoing security collaboration with Trusset.
The engagement progressed from the initial assessment of the Core Protocol to the review of additional regulated lending functionality.
Working closely with the Trusset engineering team, we identified, documented, and verified the remediation of security findings across the expanded architecture.
The final outcome reflects the value of incorporating independent security assessments as infrastructure evolves rather than treating auditing as a one-time activity.
Congratulations to the Trusset team on completing another security milestone.
About softstack
softstack is a German cybersecurity and software development company specializing in smart contract audits, Web3 penetration testing, digital asset risk assessments, and blockchain infrastructure.
Founded in 2017 and ISO 27001-certified by TÜV SÜD, softstack works with blockchain protocols, financial institutions, custodians, and enterprises to evaluate and strengthen the security of digital asset systems.
Building tokenized asset infrastructure or an on-chain lending protocol?
Contact our security team at hello@softstack.io or visit www.softstack.io to learn more about our smart contract auditing services.
Security audits evaluate the specified code and functionality at the time of assessment. They do not eliminate all potential risks or constitute regulatory certification.





