Skip to content

Commit 7f63bec

Browse files
authored
Merge pull request #228 from shivasurya/shiva/ext
SecureFlow Assistant for VSCode
2 parents 9483432 + b2fa369 commit 7f63bec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+8623
-0
lines changed

extension/secureflow/.vscode-test.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineConfig } from '@vscode/test-cli';
2+
3+
export default defineConfig({
4+
files: 'out/test/**/*.test.js',
5+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": ["dbaeumer.vscode-eslint", "amodio.tsl-problem-matcher", "ms-vscode.extension-test-runner"]
5+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// A launch configuration that compiles the extension and then opens it inside a new window
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
{
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"args": [
13+
"--extensionDevelopmentPath=${workspaceFolder}"
14+
],
15+
"outFiles": [
16+
"${workspaceFolder}/dist/**/*.js"
17+
],
18+
"preLaunchTask": "${defaultBuildTask}"
19+
}
20+
]
21+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"files.exclude": {
4+
"out": false, // set this to true to hide the "out" folder with the compiled JS files
5+
"dist": false // set this to true to hide the "dist" folder with the compiled JS files
6+
},
7+
"search.exclude": {
8+
"out": true, // set this to false to include "out" folder in search results
9+
"dist": true // set this to false to include "dist" folder in search results
10+
},
11+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
12+
"typescript.tsc.autoDetect": "off"
13+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// See https://go.microsoft.com/fwlink/?LinkId=733558
2+
// for the documentation about the tasks.json format
3+
{
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "watch",
9+
"problemMatcher": "$ts-webpack-watch",
10+
"isBackground": true,
11+
"presentation": {
12+
"reveal": "never",
13+
"group": "watchers"
14+
},
15+
"group": {
16+
"kind": "build",
17+
"isDefault": true
18+
}
19+
},
20+
{
21+
"type": "npm",
22+
"script": "watch-tests",
23+
"problemMatcher": "$tsc-watch",
24+
"isBackground": true,
25+
"presentation": {
26+
"reveal": "never",
27+
"group": "watchers"
28+
},
29+
"group": "build"
30+
},
31+
{
32+
"label": "tasks: watch-tests",
33+
"dependsOn": [
34+
"npm: watch",
35+
"npm: watch-tests"
36+
],
37+
"problemMatcher": []
38+
}
39+
]
40+
}

extension/secureflow/.vscodeignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.vscode/**
2+
.vscode-test/**
3+
out/**
4+
node_modules/**
5+
src/**
6+
.gitignore
7+
.yarnrc
8+
webpack.config.js
9+
vsc-extension-quickstart.md
10+
**/tsconfig.json
11+
**/eslint.config.mjs
12+
**/*.map
13+
**/*.ts
14+
**/.vscode-test.*

extension/secureflow/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Change Log
2+
3+
All notable changes to the "secureflow" extension will be documented in this file.
4+
5+
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6+
7+
## [Unreleased]
8+
9+
- Initial release

extension/secureflow/README.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# SecureFlow
2+
3+
SecureFlow is your AI security co-pilot for smarter, safer code, right in your editor. This VS Code extension helps you identify potential security vulnerabilities in your code directly within your development workflow.
4+
5+
## Features
6+
7+
- **Quick Security Analysis**: Select any code snippet and press `Cmd+L` (Mac) to analyze it for security vulnerabilities
8+
- **Real-time Feedback**: Get immediate feedback on potential security issues
9+
- **Detailed Reports**: View comprehensive reports with severity ratings, descriptions, and recommendations
10+
- **In-Editor Experience**: All analysis happens right in your VS Code editor with no need to switch contexts
11+
12+
![SecureFlow Analysis Demo](https://example.com/images/secureflow-demo.png)
13+
14+
## Usage
15+
16+
1. Select a block of code in your editor
17+
2. Press `Cmd+L` (Mac) or `Ctrl+L` (Windows/Linux)
18+
3. View the security analysis results in the output panel
19+
20+
SecureFlow analyzes your code for common security vulnerabilities, including:
21+
- SQL Injection
22+
- Cross-Site Scripting (XSS)
23+
- Hardcoded Secrets
24+
- Insecure Random Number Generation
25+
- And more...
26+
27+
## Requirements
28+
29+
- VS Code version 1.102.0 or higher
30+
31+
## Extension Settings
32+
33+
This extension does not add any settings yet. Settings to customize the analysis will be added in future versions.
34+
35+
## Known Issues
36+
37+
- This is an early version with limited analysis capabilities
38+
- Only a subset of common security vulnerabilities are detected
39+
40+
## Release Notes
41+
42+
### 0.0.1
43+
44+
Initial release of SecureFlow with basic security analysis features:
45+
- Code selection analysis with `Cmd+L`
46+
- Detection of basic security patterns
47+
- Output panel with security reports
48+
49+
---
50+
51+
## Following extension guidelines
52+
53+
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.
54+
55+
* [Extension Guidelines](https://code.visualstudio.com/api/references/extension-guidelines)
56+
57+
## Working with Markdown
58+
59+
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
60+
61+
* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux).
62+
* Toggle preview (`Shift+Cmd+V` on macOS or `Shift+Ctrl+V` on Windows and Linux).
63+
* Press `Ctrl+Space` (Windows, Linux, macOS) to see a list of Markdown snippets.
64+
65+
## For more information
66+
67+
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
68+
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
69+
70+
**Enjoy!**

0 commit comments

Comments
 (0)