This article describes a three-phase detector designed to identify vulnerabilities in smart contracts related to address checks. The goal of the mechanism is to filter out irrelevant states and retain only those contract contexts that are truly useful for detecting exploits based on address validations.
Phase 1 Trust listing and initial filtering: in the first phase, the Detector applies whitelist checks to exclude calls and states that come from trusted addresses or known libraries. This initial filtering reduces the volume of states to review and avoids false positives caused by legitimate interactions. By focusing on untrusted states, the detection of suspicious behaviors in smart contracts is optimized.
Phase 2 Detection of external calls and contextual analysis: the second phase identifies external calls that could introduce attack vectors, such as transfers or invocations to third-party contracts. The Detector flags state transitions caused by external calls and captures the input and output context. This step is key to recognizing patterns where address verification is performed before or after an external call and can be bypassed or manipulated.
Phase 3 Evaluation of post-call changes and vulnerability confirmation: in the final phase, the system compares the state before and after the external call to detect relevant changes in storage, balances, or permissions that do not match robust address checks. Only states that show inconsistencies or meet risk criteria are retained as vulnerable. This phased approach allows producing reports with concrete evidence and reproducible exploit paths, facilitating the secure correction of contracts.
Advantages of the phased approach: fewer false positives, greater precision in selecting vulnerable states, traceability of the proof of concept, and reduced audit time. The Detector is especially useful in automated audits and continuous integration pipelines for projects developing decentralized applications.
About Q2BSTUDIO: we are a custom software and application development company specialized in modern solutions for businesses. We offer custom software services, custom applications, and consulting in artificial intelligence and AI for companies. Our team of AI specialists designs personalized AI agents and advanced machine learning solutions that can be integrated with business pipelines and cloud platforms. We are also experts in cybersecurity, performing audits, testing, and protection of infrastructures and smart contracts to reduce operational risks.
Featured services: custom software development, custom applications, AWS and Azure cloud services, business intelligence services, and Power BI for data visualization and analysis. We integrate artificial intelligence into business processes, offer AI agents for automation and support, and cybersecurity solutions oriented to hybrid and multi-cloud environments. With Q2BSTUDIO, companies obtain complete solutions that combine artificial intelligence, security, and cloud scalability.
Conclusion: a three-phase Detector that combines whitelist, detection of external calls, and verification of post-call changes notably improves the identification of vulnerabilities in smart contracts. If you are looking to integrate automated security audits or develop solutions with artificial intelligence and advanced cloud protection, Q2BSTUDIO offers expertise in custom software, custom applications, artificial intelligence, cybersecurity, AWS and Azure cloud services, business intelligence services, AI for companies, AI agents, and Power BI to drive your projects.





