@mirastacklabs/mirasec-darwin-arm64 0.1.0 → 0.1.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 +35 -18
- package/bin/mirasec +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -275,40 +275,57 @@ Press Ctrl+C (SIGINT) to cancel running scans in `mirasec scan` and to shut `ser
|
|
|
275
275
|
|
|
276
276
|
## Example output
|
|
277
277
|
|
|
278
|
-
Real output from `mirasec scan source testdata/fixtures/cryptoapp` (the small fixture in this repository; its Go and
|
|
278
|
+
Real output from `mirasec scan source testdata/fixtures/cryptoapp` (the small fixture in this repository; its Go, Java and Python files use RSA, EC and AES). The summary goes to stderr, the CBOM JSON to stdout, and the exit status is 1 because quantum-vulnerable findings were found:
|
|
279
279
|
|
|
280
280
|
```
|
|
281
|
-
scan
|
|
281
|
+
scan 01a24a2c-cc67-7854-8708-352a47dea41e completed: 10 vulnerable finding(s) (P0=10)
|
|
282
|
+
[P0] RSA at Crypto.java:7: public_key_shor
|
|
283
|
+
[P0] EC at Crypto.java:11: public_key_shor
|
|
282
284
|
[P0] RSA at KeyGen.java:5: public_key_shor
|
|
283
285
|
[P0] RSA/ECB/PKCS1PADDING at Wrap.java:5: public_key_shor
|
|
284
|
-
[P0] RSA
|
|
286
|
+
[P0] RSA at crypto_util.py:4: public_key_shor
|
|
287
|
+
[P0] EC at crypto_util.py:4: public_key_shor
|
|
288
|
+
[P0] RSA at crypto_util.py:8: public_key_shor
|
|
289
|
+
[P0] EC at crypto_util.py:9: public_key_shor
|
|
290
|
+
[P0] RSA at main.go:15: public_key_shor
|
|
291
|
+
[P0] ECDSA at main.go:25: public_key_shor
|
|
285
292
|
exit status 1
|
|
286
293
|
```
|
|
287
294
|
|
|
288
|
-
An excerpt of the CBOM JSON on stdout (
|
|
295
|
+
An excerpt of the CBOM JSON on stdout (25 KB in total; the scan ID and the bom-refs differ on every run). Each algorithm is one component and lists every site in `evidence.occurrences`:
|
|
289
296
|
|
|
290
297
|
```json
|
|
291
298
|
{
|
|
292
299
|
"components": [
|
|
293
300
|
{
|
|
294
|
-
"bom-ref": "
|
|
295
|
-
"name": "example.com/cryptoapp",
|
|
296
|
-
"properties": [{ "name": "mirasec:language", "value": "go" }],
|
|
297
|
-
"purl": "pkg:golang/example.com/cryptoapp",
|
|
298
|
-
"type": "library"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"bom-ref": "61db1c3e-3652-5352-be4e-598668ef3039",
|
|
301
|
+
"bom-ref": "dd361438-ff76-5cef-a514-771c3fd4ba4b",
|
|
302
302
|
"cryptoProperties": {
|
|
303
303
|
"algorithmProperties": {
|
|
304
|
-
"cryptoFunctions": ["encrypt", "decrypt"],
|
|
305
|
-
"primitive": "
|
|
304
|
+
"cryptoFunctions": ["keygen", "encrypt", "decrypt", "sign", "verify"],
|
|
305
|
+
"primitive": "pke"
|
|
306
306
|
},
|
|
307
|
-
"assetType": "algorithm"
|
|
307
|
+
"assetType": "algorithm",
|
|
308
|
+
"oid": "1.2.840.113549.1.1.1"
|
|
309
|
+
},
|
|
310
|
+
"evidence": {
|
|
311
|
+
"occurrences": [
|
|
312
|
+
{
|
|
313
|
+
"additionalContext": "KeyPairGenerator rsa = KeyPairGenerator.getInstance(\"RSA\");",
|
|
314
|
+
"line": 7,
|
|
315
|
+
"location": "Crypto.java",
|
|
316
|
+
"offset": 32
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"additionalContext": "key, _ := rsa.GenerateKey(rand.Reader, 2048)",
|
|
320
|
+
"line": 15,
|
|
321
|
+
"location": "main.go",
|
|
322
|
+
"offset": 12
|
|
323
|
+
},
|
|
324
|
+
...
|
|
325
|
+
]
|
|
308
326
|
},
|
|
309
|
-
"
|
|
310
|
-
"name": "
|
|
311
|
-
"properties": [{ "name": "mirasec:language", "value": "java" }],
|
|
327
|
+
"name": "RSA",
|
|
328
|
+
"properties": [{ "name": "mirasec:language", "value": "go,java,python" }],
|
|
312
329
|
"type": "cryptographic-asset"
|
|
313
330
|
},
|
|
314
331
|
...
|
package/bin/mirasec
CHANGED
|
Binary file
|