Skip to content

ShieldContract #328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions labs/lfdt/ShieldContract.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Lab Name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Lab Name
---
layout: default
title: ShieldContract Analyzer
parent: LFDT Labs
grand_parent: Active Labs
---
# Lab Name


ShieldContract Analyzer

# Short Description

ShieldContract Analyzer is a Rust-based CLI tool in ideation phase for smart contract security analysis, with a focus on verifying compliance with token standards (e.g., ERC-20, ERC-721, ERC-1155, ERC-777) and providing quick first-check security audits. It integrates with AI providers like OpenAI, Claude, and Gemini for cross-check analysis, helping institutions entering tokenization to rapidly identify vulnerabilities and ensure standards adherence.

# Scope of Lab

This lab develops a proof-of-concept CLI tool for blockchain smart contract security, currently supporting Hyperledger Fabric chaincode and Solana programs, with modular extensions for other platforms. Key functionalities include:

- **Standards Compliance Checking**: Validates if contracts follow token standards like ERC-20 (e.g., transfer functions, balances) and stablecoin best practices, detecting deviations that could lead to security issues.
- **Security Vulnerability Detection**: Platform-specific checks, such as non-determinism in Fabric (e.g., time/rand usage), arithmetic overflows/underflows in Solana, missing signer/account validation, CPI security, and private data leaks.
- **AI Cross-Check Analysis**: Connects to multiple LLMs (OpenAI, Claude, Gemini) for consensus-based validation of findings, AI-generated code patterns, and remediation suggestions – vital for quick, reliable first checks in institutional tokenization workflows.
- **Reporting**: Outputs in JSON, Markdown, HTML, and SARIF for CI/CD integration.
- **Other Features**: Interactive mode, custom rules, Docker support, and configuration via TOML. Stubbed/planned features include full auditing.

As enterprises and business solutions are looking into developing web3 products such as institutional tokenization and stable coins, there is a pressing need for a quick CLI analyzer tool for smart contracts to see if it meets the standards and that it can fit into a CI/CD workflow. As institutions increasingly tokenize assets, this tool provides a "quick first check" for smart contracts, combining static analysis with AI to flag non-compliance and vulnerabilities early. It aligns with Hyperledger's ecosystem (e.g., Fabric integration) and could expand to support more standards/AI providers. The project is in early ideation (v0.2.0), with some features limited.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
As enterprises and business solutions are looking into developing web3 products such as institutional tokenization and stable coins, there is a pressing need for a quick CLI analyzer tool for smart contracts to see if it meets the standards and that it can fit into a CI/CD workflow. As institutions increasingly tokenize assets, this tool provides a "quick first check" for smart contracts, combining static analysis with AI to flag non-compliance and vulnerabilities early. It aligns with Hyperledger's ecosystem (e.g., Fabric integration) and could expand to support more standards/AI providers. The project is in early ideation (v0.2.0), with some features limited.
As enterprises and business solutions are looking into developing web3 products such as institutional tokenization and stable coins, there is a pressing need for a quick CLI analyzer tool for smart contracts to see if it meets the standards and that it can fit into a CI/CD workflow. As institutions increasingly tokenize assets, this tool provides a "quick first check" for smart contracts, combining static analysis with AI to flag non-compliance and vulnerabilities early. It aligns with LF Decentralized Trust's ecosystem (e.g., Fabric integration) and could expand to support more standards/AI providers. The project is in early ideation (v0.2.0), with some features limited.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is a correct change. Did you want to only refer to Hyperledger Fabric in this sentence or are you talking about the entire LFDT ecosystem? If the former, maybe the change should be "...with Hyperledger Fabric's ecosystem and could expand..."


# Initial Committers

- https://github.com/KoushikGavini


# Sponsor



# Pre-existing repository

- https://github.com/KoushikGavini/ShieldContract
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you will need to add DCO sign-offs before we can move this repo. Also, any chance of licensing this under Apache 2.0?