{"id":15158199,"url":"https://github.com/arrjunpradeep/upgradeable-smart-contract-security-system","last_synced_at":"2026-02-28T04:05:05.426Z","repository":{"id":252738348,"uuid":"841080770","full_name":"ArrjunPradeep/upgradeable-smart-contract-security-system","owner":"ArrjunPradeep","description":"The Upgradeable Smart Contract Security System is a comprehensive solution designed to address and manage vulnerabilities in upgradeable smart contracts. This project leverages a monorepo approach using NestJS to develop microservices, ensuring a scalable and maintainable architecture.","archived":false,"fork":false,"pushed_at":"2024-08-14T13:44:16.000Z","size":217,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T18:21:26.188Z","etag":null,"topics":["blockchain","ethereum","ethers","etherscan","foundry","mongodb","mongodb-compass","mongoose","monorepo","nestjs","sepolia","smart-contracts","typescript","upgradeable-contracts","upgradeable-smart-contract","winston-logger"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArrjunPradeep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"security-microservices/.eslintrc.js","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-11T15:29:05.000Z","updated_at":"2024-10-19T04:36:03.000Z","dependencies_parsed_at":"2024-08-14T15:19:40.448Z","dependency_job_id":null,"html_url":"https://github.com/ArrjunPradeep/upgradeable-smart-contract-security-system","commit_stats":{"total_commits":78,"total_committers":1,"mean_commits":78.0,"dds":0.0,"last_synced_commit":"91c9afb0f19ffe96a247e7747be18a2452617dab"},"previous_names":["arrjunpradeep/upgradeable-smart-contract-security-system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArrjunPradeep%2Fupgradeable-smart-contract-security-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArrjunPradeep%2Fupgradeable-smart-contract-security-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArrjunPradeep%2Fupgradeable-smart-contract-security-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArrjunPradeep%2Fupgradeable-smart-contract-security-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArrjunPradeep","download_url":"https://codeload.github.com/ArrjunPradeep/upgradeable-smart-contract-security-system/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247684480,"owners_count":20979072,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","ethereum","ethers","etherscan","foundry","mongodb","mongodb-compass","mongoose","monorepo","nestjs","sepolia","smart-contracts","typescript","upgradeable-contracts","upgradeable-smart-contract","winston-logger"],"created_at":"2024-09-26T20:41:17.671Z","updated_at":"2025-10-29T17:15:10.199Z","avatar_url":"https://github.com/ArrjunPradeep.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Upgradeable Smart Contract Security System\n\n## Overview\n\nThe `Upgradeable Smart Contract Security System` is a comprehensive solution designed to address and manage `vulnerabilities` in upgradeable smart contracts. This project leverages a `monorepo` approach using `NestJS` to develop `microservices`, ensuring a scalable and maintainable architecture. The system includes a vulnerable Solidity smart contract, a suite of microservices for exploit detection and prevention, and a robust reporting mechanism. The key components of the system are outlined below:\n\n### Smart Contract Development\nA Solidity smart contract has been developed with known vulnerabilities to reentrancy attack. This upgradeable contract incorporates the following functionalities using OpenZeppelin libraries:\n\n- `Ownable`: Provides ownership management.\n- `Pausable`: Allows pausing of the contract in emergencies.\n\n### Front-Running Microservice\nA microservice is implemented to `detect exploit attempts` and send `notifications` : \n\n- Monitors for exploit attempts on the smart contract.\n- Sends email notifications when a potential exploit is detected.\n\n### Detailed Reporting and Analytics\nA reporting system is integrated to provide detailed analytics and performance metrics:\n\n- Slither Integration: Utilizes `Slither` for vulnerability analysis and storing it to database\n- Database Storage: Stores detailed reports and analytics in a MongoDB `database`, tracking system performance and the effectiveness of the pausing mechanism.\n\n### Manual Upgrade Functionality\nThe system includes functionality for `manually upgrading` the smart contract to address vulnerabilities. An upgraded version of the contract has been created, which can be manually deployed to fix the vulnerabilities identified through notifications and reporting.\n\n## Documentation \n[`Vulnerable Upgradeable Contracts README`](https://github.com/ArrjunPradeep/upgradeable-smart-contract-security-system/tree/main/vulnerable-upgradeable-contracts): Detailed documentation on the smart contract, including development, deployment, and upgrade scripts.\n\n[`Security Microservices README`](https://github.com/ArrjunPradeep/upgradeable-smart-contract-security-system/tree/main/security-microservices): Comprehensive guide for the microservices, covering exploit detection, notification, front-running prevention, and reporting.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farrjunpradeep%2Fupgradeable-smart-contract-security-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farrjunpradeep%2Fupgradeable-smart-contract-security-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farrjunpradeep%2Fupgradeable-smart-contract-security-system/lists"}