Stack3 Security
SECURITY BEFORE YOU TRUST
The problem Stack3 Security solves
Stack3 Security
Security before you trust. Inspect first, then decide.
Description
A GitHub repository can hide malicious installation scripts or auto-run commands, while a legitimate-looking dApp can request dangerous wallet permissions. Stack3 Security helps developers and Web3 users identify these risks before taking action.
It combines two security layers:
Developer Guard (VS Code)
- Scans GitHub repositories in quarantine without executing their contents.
- Detects suspicious scripts, auto-run configurations, exposed secrets, and risky project files.
- Analyses npm dependencies using Socket.dev.
- Uses Claude Haiku to explain findings without overriding security verdicts.
- Monitors project changes and warns about sensitive information before commits.
Web3 Guard (Chrome + Dashboard)
- Detects suspicious websites and phishing signals.
- Reviews wallet requests before supported wallet interfaces open.
- Decodes transactions and identifies website-to-transaction intent mismatches.
- Analyses EVM smart contracts, verification status, proxies, and privileged permissions.
Threat Intelligence Graph
Uses PostgreSQL and TigerGraph to connect suspicious wallets, domains, packages, repositories, and data-exfiltration endpoints, turning isolated findings into shared threat intelligence.
Additional Features
- Email OTP authentication and JWT sessions.
- Free, Pro, and Team subscriptions through Dodo Payments.
- Live security dashboard with scans, repositories, and threat graph.
- Evidence-based findings with severity, sources, limitations, and recommendations.
- Cloudflare Workers and container-based deployment with automated updates.
How It Works
- Inspect – Analyse code, dependencies, websites, contracts, and wallet requests.
- Connect – Link suspicious entities through the threat intelligence graph.
- Explain – Present risks with evidence, severity, and actionable recommendations.
- Decide – Pause, investigate, reject, or proceed with confidence.
Stack3 never guarantees that something is safe and never signs or broadcasts transactions on behalf of users.
Stack3 Security — Don't trust the interface. Verify what happens underneath.
Challenges we ran into
Challenges We Ran Into
Building Stack3 Security involved challenges across graph databases, browser extensions, security analysis, and cloud infrastructure. Some of the biggest hurdles were:
1. TigerGraph Integration
TigerGraph Cloud (Savanna 4.x) doesn't support conventional SQL workflows. We encountered GSQL schema parsing issues, reserved keywords (Package), and graph-local job limitations on multi-source edges. The outdated /restpp/requesttoken endpoint also returned HTTP 400, requiring migration to /gsql/v1/tokens.
Solution: We adapted the graph schema, renamed Package to SoftwarePackage, redesigned edge definitions, and implemented a PostgreSQL-first reporting pipeline with a background worker that syncs data into TigerGraph and retries failed writes.
2. Extension Publishing & API Key Management
Publishing the VS Code and Chrome extensions involved lengthy packaging, identity verification, marketplace organization requirements, and review processes. We also discovered that local .env files aren't bundled into packaged VSIX extensions.
Solution: We moved Socket.dev and Claude API keys into the operating system's secure keychain and handled marketplace publishing requirements separately from development.
3. Reliable Website Scanning
Website scans require multiple live sources, including RDAP, blocklists, blockchain lookups, and website signals. Upstream timeouts and rate limits frequently caused entire scans to fail.
Solution: We introduced Redis-based rate limiting and shared caching to avoid repeatedly querying services such as Etherscan and RDAP. Instead of returning blank failures, Stack3 now reports available findings alongside an explicit list of checks that could not be completed.
4. Dependency Scanning Edge Cases
- Socket.dev empty responses: Packages with no malware alerts were incorrectly treated as failed checks. We fixed this by distinguishing successful clean responses from actual API failures.
- Missing lockfiles: Repositories containing only version ranges, such as
"express": "^4.18.2", previously displayed zero packages. We added support for scanning the floor version of caret (^) and tilde (~) ranges.
5. Cross-Service Authentication
Internal threat reports failed with invalid_service_key because the Chrome extension and VS Code extension used different service keys.
Solution: Standardized the INTERNAL_SERVICE_KEY and SERVICE_KEY across services using the same 64-character secret.
6. Wallet Compatibility & Fail-Safe Behaviour
Intercepting ethereum.request in the browser's MAIN world introduced a critical challenge: security analysis must never break normal dApp functionality.
Solution: We designed wallet request interception so that if the extension is inactive or crashes, requests can still reach the wallet rather than leaving the dApp unusable.
7. Honest Security Verdicts
Security rules can identify known suspicious patterns, but they cannot guarantee the absence of malicious intent. Users often expect a simple green "safe" verdict, which would be misleading.
Solution: We adopted evidence-based verdicts such as Critical, High, Caution, Unknown, and No Known Issues, explicitly communicating limitations instead of promising complete safety.
8. Cloudflare Container Cold Starts
Cloudflare Workers running container-backed services experience additional latency when containers need to start after being idle.
Solution: We optimized container sizes and implemented deployment-time warm-up strategies. First-request latency remains an infrastructure consideration.
Key Takeaway: These challenges taught us that building security software isn't just about detecting threats. It's about reliability, compatibility, evidence, and ensuring that security mechanisms never become another source of risk.
