cognium-dev 4.12.0 → 4.13.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.
- package/README.md +14 -21
- package/dist/cli.js +919 -84
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/cognium-dev)
|
|
4
4
|
[](https://github.com/cogniumhq/cognium-dev/blob/main/LICENSE)
|
|
5
|
-
[](https://github.com/cogniumhq/cognium-dev#benchmark-results)
|
|
6
6
|
[](https://github.com/marketplace/actions/cognium-dev-scan)
|
|
7
7
|

|
|
8
8
|

|
|
@@ -467,35 +467,28 @@ For details on LLM integration and benchmark improvements (42.5% → 78.3% on CW
|
|
|
467
467
|
|
|
468
468
|
## Benchmark Results
|
|
469
469
|
|
|
470
|
-
|
|
470
|
+
Measured on cognium-dev **4.12.0**, the CLI as published. Fully deterministic.
|
|
471
471
|
|
|
472
|
-
| Benchmark |
|
|
473
|
-
|
|
474
|
-
| OWASP
|
|
475
|
-
| Juliet Test Suite |
|
|
476
|
-
| SecuriBench Micro |
|
|
477
|
-
| CWE-Bench-Java |
|
|
472
|
+
| Benchmark | TPR | FPR | Scope and rule |
|
|
473
|
+
|-----------|-----|-----|----------------|
|
|
474
|
+
| OWASP BenchmarkJava 1.2 | 90.0% | 3.0% | All 2,740 cases; scorecard rule (file-level CWE match) |
|
|
475
|
+
| Juliet Test Suite 1.3 | 99.4% | 21.9% | `_01` cases of 9 injection CWEs; `bad()` vs `good*()` methods; `require-entry-path` disabled |
|
|
476
|
+
| SecuriBench Micro | 88.0% | 6.7% | 123 annotated cases; found sink lines vs `vuln_count` |
|
|
477
|
+
| CWE-Bench-Java | 32.5% (39/120) | n/a | 120 real CVEs; a finding of the CVE's CWE inside the fix method |
|
|
478
478
|
|
|
479
479
|
### Reproducing Benchmarks
|
|
480
480
|
|
|
481
|
-
|
|
481
|
+
Each number above comes from a `cognium-dev scan` JSON report and a scoring script in this repository. For example, OWASP:
|
|
482
482
|
|
|
483
483
|
```bash
|
|
484
|
-
|
|
485
|
-
npm install -g cognium
|
|
486
|
-
|
|
487
|
-
# Clone benchmark repositories
|
|
484
|
+
npm install -g cognium-dev
|
|
488
485
|
git clone https://github.com/OWASP-Benchmark/BenchmarkJava
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
# Run scans
|
|
493
|
-
cognium-dev scan BenchmarkJava/src --format json -o owasp-results.json
|
|
494
|
-
cognium-dev scan juliet-test-suite-for-java --format json -o juliet-results.json
|
|
495
|
-
cognium-dev scan cwe-bench-java --format json -o cwe-bench-results.json
|
|
486
|
+
cd BenchmarkJava
|
|
487
|
+
cognium-dev scan . --format json --category security -l java > owasp.json
|
|
488
|
+
node <cognium-dev repo>/bench/sast/score-owasp.mjs expectedresults-1.2.csv owasp.json
|
|
496
489
|
```
|
|
497
490
|
|
|
498
|
-
|
|
491
|
+
The scoring rule and command for every benchmark are in [`bench/README.md`](https://github.com/cogniumhq/cognium-dev/blob/main/bench/README.md#sast-accuracy-benchsast).
|
|
499
492
|
|
|
500
493
|
## Links
|
|
501
494
|
|