ghostpatch 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,66 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+
6
+ # This workflow lets you generate SLSA provenance file for your project.
7
+ # The generation satisfies level 3 for the provenance requirements - see https://slsa.dev/spec/v0.1/requirements
8
+ # The project is an initiative of the OpenSSF (openssf.org) and is developed at
9
+ # https://github.com/slsa-framework/slsa-github-generator.
10
+ # The provenance file can be verified using https://github.com/slsa-framework/slsa-verifier.
11
+ # For more information about SLSA and how it improves the supply-chain, visit slsa.dev.
12
+
13
+ name: SLSA generic generator
14
+ on:
15
+ workflow_dispatch:
16
+ release:
17
+ types: [created]
18
+
19
+ jobs:
20
+ build:
21
+ runs-on: ubuntu-latest
22
+ outputs:
23
+ digests: ${{ steps.hash.outputs.digests }}
24
+
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+
28
+ # ========================================================
29
+ #
30
+ # Step 1: Build your artifacts.
31
+ #
32
+ # ========================================================
33
+ - name: Build artifacts
34
+ run: |
35
+ # These are some amazing artifacts.
36
+ echo "artifact1" > artifact1
37
+ echo "artifact2" > artifact2
38
+
39
+ # ========================================================
40
+ #
41
+ # Step 2: Add a step to generate the provenance subjects
42
+ # as shown below. Update the sha256 sum arguments
43
+ # to include all binaries that you generate
44
+ # provenance for.
45
+ #
46
+ # ========================================================
47
+ - name: Generate subject for provenance
48
+ id: hash
49
+ run: |
50
+ set -euo pipefail
51
+
52
+ # List the artifacts the provenance will refer to.
53
+ files=$(ls artifact*)
54
+ # Generate the subjects (base64 encoded).
55
+ echo "hashes=$(sha256sum $files | base64 -w0)" >> "${GITHUB_OUTPUT}"
56
+
57
+ provenance:
58
+ needs: [build]
59
+ permissions:
60
+ actions: read # To read the workflow path.
61
+ id-token: write # To sign the provenance.
62
+ contents: write # To add assets to a release.
63
+ uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.4.0
64
+ with:
65
+ base64-subjects: "${{ needs.build.outputs.digests }}"
66
+ upload-assets: true # Optional: Upload to a new release
package/README.md CHANGED
@@ -208,6 +208,67 @@ Professional standalone report with severity charts, finding details, and remedi
208
208
  sarif_file: results.sarif
209
209
  ```
210
210
 
211
+ ## Contributing
212
+
213
+ We welcome contributions! Here's how to get involved:
214
+
215
+ ### Reporting Issues
216
+
217
+ Found a bug or have a feature request? [Open an issue](https://github.com/NeuralRays/ghostpatch/issues/new) with:
218
+ - A clear description of the problem or suggestion
219
+ - Steps to reproduce (for bugs)
220
+ - Expected vs actual behavior
221
+ - Your environment (OS, Node.js version)
222
+
223
+ ### Submitting Pull Requests
224
+
225
+ 1. **Fork** the repository
226
+ 2. **Create** a feature branch: `git checkout -b feature/my-feature`
227
+ 3. **Make** your changes and add tests
228
+ 4. **Run** tests: `npm test`
229
+ 5. **Build** to verify: `npm run build`
230
+ 6. **Commit** your changes: `git commit -m "Add my feature"`
231
+ 7. **Push** to your fork: `git push origin feature/my-feature`
232
+ 8. **Open** a [Pull Request](https://github.com/NeuralRays/ghostpatch/pulls) against `master`
233
+
234
+ ### Development Setup
235
+
236
+ ```bash
237
+ git clone https://github.com/NeuralRays/ghostpatch.git
238
+ cd ghostpatch
239
+ npm install
240
+ npm run build
241
+ npm test
242
+ ```
243
+
244
+ ### What We're Looking For
245
+
246
+ - New security detection rules and patterns
247
+ - Support for additional programming languages
248
+ - Improved AI prompt engineering for better analysis
249
+ - Bug fixes and false positive reductions
250
+ - Documentation improvements
251
+ - CI/CD integration examples
252
+
253
+ ### Code of Conduct
254
+
255
+ Please be respectful and constructive in all interactions. We are committed to providing a welcoming and inclusive experience for everyone.
256
+
257
+ ## Security
258
+
259
+ If you discover a security vulnerability within GhostPatch, please report it responsibly by emailing **neuralsoft@injectedsecurity.pro** instead of opening a public issue.
260
+
261
+ ## Creator & Maintainer
262
+
263
+ **NeuralRays** — [GitHub](https://github.com/NeuralRays) | [neuralsoft@injectedsecurity.pro](mailto:neuralsoft@injectedsecurity.pro)
264
+
211
265
  ## License
212
266
 
213
- MIT
267
+ MIT License — see [LICENSE](LICENSE) for details.
268
+
269
+ ---
270
+
271
+ <p align="center">
272
+ <strong>GhostPatch</strong> — Scan. Detect. Secure.<br>
273
+ <sub>Built with TypeScript. Powered by AI.</sub>
274
+ </p>
package/package.json CHANGED
@@ -1,53 +1,61 @@
1
- {
2
- "name": "ghostpatch",
3
- "version": "1.0.0",
4
- "description": "AI-powered security vulnerability scanner like SonarQube but runs locally via npm with zero infrastructure. Uses free HuggingFace models by default.",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "bin": {
8
- "ghostpatch": "dist/cli/index.js",
9
- "gp": "dist/cli/index.js"
10
- },
11
- "scripts": {
12
- "build": "tsc",
13
- "dev": "tsc --watch",
14
- "test": "vitest run",
15
- "test:watch": "vitest",
16
- "start": "node dist/cli/index.js",
17
- "scan": "node dist/cli/index.js scan",
18
- "serve": "node dist/cli/index.js serve",
19
- "prepublishOnly": "npm run build"
20
- },
21
- "keywords": [
22
- "security",
23
- "scanner",
24
- "vulnerability",
25
- "sast",
26
- "ai",
27
- "sonarqube",
28
- "owasp",
29
- "mcp",
30
- "static-analysis"
31
- ],
32
- "author": "",
33
- "license": "MIT",
34
- "engines": {
35
- "node": ">=18.0.0"
36
- },
37
- "dependencies": {
38
- "commander": "^14.0.3",
39
- "glob": "^13.0.1",
40
- "micromatch": "^4.0.8",
41
- "chokidar": "^4.0.3"
42
- },
43
- "optionalDependencies": {
44
- "@anthropic-ai/sdk": "^0.39.0",
45
- "openai": "^4.80.0"
46
- },
47
- "devDependencies": {
48
- "@types/micromatch": "^4.0.9",
49
- "@types/node": "^22.12.0",
50
- "typescript": "^5.7.3",
51
- "vitest": "^3.2.4"
52
- }
53
- }
1
+ {
2
+ "name": "ghostpatch",
3
+ "version": "1.0.1",
4
+ "description": "AI-powered security vulnerability scanner that runs locally via npm with zero infrastructure. Uses free HuggingFace models by default.",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "bin": {
8
+ "ghostpatch": "dist/cli/index.js",
9
+ "gp": "dist/cli/index.js"
10
+ },
11
+ "scripts": {
12
+ "build": "tsc",
13
+ "dev": "tsc --watch",
14
+ "test": "vitest run",
15
+ "test:watch": "vitest",
16
+ "start": "node dist/cli/index.js",
17
+ "scan": "node dist/cli/index.js scan",
18
+ "serve": "node dist/cli/index.js serve",
19
+ "prepublishOnly": "npm run build"
20
+ },
21
+ "keywords": [
22
+ "security",
23
+ "scanner",
24
+ "vulnerability",
25
+ "sast",
26
+ "ai",
27
+ "sonarqube",
28
+ "owasp",
29
+ "mcp",
30
+ "static-analysis"
31
+ ],
32
+ "author": "NeuralRays <neuralsoft@injectedsecurity.pro>",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "https://github.com/NeuralRays/ghostpatch.git"
36
+ },
37
+ "homepage": "https://github.com/NeuralRays/ghostpatch",
38
+ "bugs": {
39
+ "url": "https://github.com/NeuralRays/ghostpatch/issues"
40
+ },
41
+ "license": "MIT",
42
+ "engines": {
43
+ "node": ">=18.0.0"
44
+ },
45
+ "dependencies": {
46
+ "commander": "^14.0.3",
47
+ "glob": "^13.0.1",
48
+ "micromatch": "^4.0.8",
49
+ "chokidar": "^4.0.3"
50
+ },
51
+ "optionalDependencies": {
52
+ "@anthropic-ai/sdk": "^0.74.0",
53
+ "openai": "^6.18.0"
54
+ },
55
+ "devDependencies": {
56
+ "@types/micromatch": "^4.0.9",
57
+ "@types/node": "^22.12.0",
58
+ "typescript": "^5.7.3",
59
+ "vitest": "^3.2.4"
60
+ }
61
+ }