https://github.com/dicksent/shift-left
https://github.com/dicksent/shift-left
cybersecurity fullstack-development next security-tools
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dicksent/shift-left
- Owner: DicksenT
- License: other
- Created: 2025-06-10T20:23:54.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-06-29T10:52:49.000Z (about 1 year ago)
- Last Synced: 2025-06-29T11:33:55.026Z (12 months ago)
- Topics: cybersecurity, fullstack-development, next, security-tools
- Language: TypeScript
- Homepage: https://shiftleft.dicksentan.com
- Size: 265 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# 🛡️ Shift-Left – Dev-First Security Dashboard
**Shift-Left** helps developers catch and understand security risks *before code is deployed*.
It scans GitHub repos using **industry-standard tools** (Snyk, Trivy, Semgrep), simulates real-world attacks, and explains vulnerabilities in plain English — all in one clean, interactive dashboard.
---
## 🌐 Live Demo
👉 [shiftLeft.dicksentan.com](https://shiftleft.dicksentan.com)
> ⚠️ Cold start may take a few seconds.
---
## Video Demo
👉 https://www.loom.com/share/df37c2743a044eb5bedbe85b182d6289?sid=1a71365a-978f-480d-8ec1-f104b9aa8515
> Please understand im nervous 😬 (Open subtitle for more clarity)
---
## Screenshot



---
## 🔍 Key Features
- ✅ **Unified scanning pipeline** — integrates Snyk, Trivy, and Semgrep into a single flow
- 📊 **Interactive dashboard** — filter issues by severity, tool, and source file
- 🤖 **AI-powered insight** — plain-language vulnerability explanations (OpenAI)
- 🐍 **HackMe simulator** — CLI-style terminal log of realistic attacks (SQLi, RCE, etc.)
- 🚀 **Deploy-ready architecture** — serverless Next.js API, Fly.io backend, Vercel UI
- 🔐 **Secure execution** — sandboxed scanners, streaming output, no GitHub login required
---
## 📈 Impact
- Scanned public GitHub repos in testing
- Detected and explained 300+ vulnerabilities
- Helped developers simulate 5+ real-world attacks like SQLi and SSRF
---
## 🛠 Tech Stack
| Layer | Stack |
|-------------|-------------------------------------------|
| Frontend | Next.js 15, TailwindCSS, TypeScript |
| Backend | Node.js, Next.js API Routes, OpenAI SDK |
| Scanners | Snyk, Trivy, Semgrep (via CLI + `exec()`) |
| Deployment | Vercel (UI) + DigitalOcean (API) + Docker |
---
## ⚙️ How It Works
### 1. Paste a GitHub Repository URL
Paste any public repo (e.g. `https://github.com/vercel/next.js`) into the input box.
The app will:
- Clone the repo inside a temporary Docker container
- Run **Snyk**, **Trivy**, and **Semgrep** scans
- Normalize and visualize results
### 2. Explore Findings
Click a vulnerability card to see:
- 🤖 **AI Explanation** — plain-text breakdown of the risk
- 🚨 **Hack Simulation** — attack logs (e.g. `[INFO] SQL injection payload sent`)
- 🛡️ **Defense Tips** — mitigation advice (if detected)
---
## 🔐 Environment Variables
Create a `.env.local` file:
```env
OPENAI_API_KEY=your-openai-key
SNYK_TOKEN=your-snyk-token
---
## 🧱 Local Development
```bash
git clone https://github.com/DicksenT/shift-left.git
cd shift-left
npm install
npm run dev