Skip to content

Commit 019ccf5

Browse files
authored
Merge pull request #1434 from secureCodeBox/feature/add-identified-atparameter
Added optional `identified at` parameter to findings
2 parents 3bb0838 + 44609a9 commit 019ccf5

File tree

17 files changed

+1203
-820
lines changed

17 files changed

+1203
-820
lines changed

scanners/amass/parser/__snapshots__/parser.test.js.snap

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ exports[`example parser parses large json result successfully 1`] = `
1919
},
2020
"category": "Subdomain",
2121
"description": "Found subdomain grafana.securecodebox.io",
22+
"identified_at": "2019-10-04T21:35:19.000Z",
2223
"location": "grafana.securecodebox.io",
2324
"name": "grafana.securecodebox.io",
2425
"osi_layer": "NETWORK",
@@ -41,6 +42,7 @@ exports[`example parser parses large json result successfully 1`] = `
4142
},
4243
"category": "Subdomain",
4344
"description": "Found subdomain kibana.securecodebox.io",
45+
"identified_at": "2019-10-04T21:35:21.000Z",
4446
"location": "kibana.securecodebox.io",
4547
"name": "kibana.securecodebox.io",
4648
"osi_layer": "NETWORK",
@@ -63,6 +65,7 @@ exports[`example parser parses large json result successfully 1`] = `
6365
},
6466
"category": "Subdomain",
6567
"description": "Found subdomain build.securecodebox.io",
68+
"identified_at": "2019-10-04T21:35:21.000Z",
6669
"location": "build.securecodebox.io",
6770
"name": "build.securecodebox.io",
6871
"osi_layer": "NETWORK",
@@ -85,6 +88,7 @@ exports[`example parser parses large json result successfully 1`] = `
8588
},
8689
"category": "Subdomain",
8790
"description": "Found subdomain monitoring.securecodebox.io",
91+
"identified_at": "2019-10-04T21:35:21.000Z",
8892
"location": "monitoring.securecodebox.io",
8993
"name": "monitoring.securecodebox.io",
9094
"osi_layer": "NETWORK",
@@ -107,6 +111,7 @@ exports[`example parser parses large json result successfully 1`] = `
107111
},
108112
"category": "Subdomain",
109113
"description": "Found subdomain ui.securecodebox.io",
114+
"identified_at": "2019-10-04T21:35:21.000Z",
110115
"location": "ui.securecodebox.io",
111116
"name": "ui.securecodebox.io",
112117
"osi_layer": "NETWORK",
@@ -129,6 +134,7 @@ exports[`example parser parses large json result successfully 1`] = `
129134
},
130135
"category": "Subdomain",
131136
"description": "Found subdomain juiceshop.securecodebox.io",
137+
"identified_at": "2019-10-04T21:35:21.000Z",
132138
"location": "juiceshop.securecodebox.io",
133139
"name": "juiceshop.securecodebox.io",
134140
"osi_layer": "NETWORK",
@@ -151,6 +157,7 @@ exports[`example parser parses large json result successfully 1`] = `
151157
},
152158
"category": "Subdomain",
153159
"description": "Found subdomain wpscan.securecodebox.io",
160+
"identified_at": "2019-10-04T21:35:21.000Z",
154161
"location": "wpscan.securecodebox.io",
155162
"name": "wpscan.securecodebox.io",
156163
"osi_layer": "NETWORK",
@@ -173,6 +180,7 @@ exports[`example parser parses large json result successfully 1`] = `
173180
},
174181
"category": "Subdomain",
175182
"description": "Found subdomain hack.securecodebox.io",
183+
"identified_at": "2019-10-04T21:35:21.000Z",
176184
"location": "hack.securecodebox.io",
177185
"name": "hack.securecodebox.io",
178186
"osi_layer": "NETWORK",
@@ -195,6 +203,7 @@ exports[`example parser parses large json result successfully 1`] = `
195203
},
196204
"category": "Subdomain",
197205
"description": "Found subdomain spider.securecodebox.io",
206+
"identified_at": "2019-10-04T21:35:22.000Z",
198207
"location": "spider.securecodebox.io",
199208
"name": "spider.securecodebox.io",
200209
"osi_layer": "NETWORK",
@@ -217,6 +226,7 @@ exports[`example parser parses large json result successfully 1`] = `
217226
},
218227
"category": "Subdomain",
219228
"description": "Found subdomain www.securecodebox.io",
229+
"identified_at": "2019-10-04T21:35:22.000Z",
220230
"location": "www.securecodebox.io",
221231
"name": "www.securecodebox.io",
222232
"osi_layer": "NETWORK",
@@ -239,6 +249,7 @@ exports[`example parser parses large json result successfully 1`] = `
239249
},
240250
"category": "Subdomain",
241251
"description": "Found subdomain rancher.securecodebox.io",
252+
"identified_at": "2019-10-04T21:35:22.000Z",
242253
"location": "rancher.securecodebox.io",
243254
"name": "rancher.securecodebox.io",
244255
"osi_layer": "NETWORK",
@@ -261,6 +272,7 @@ exports[`example parser parses large json result successfully 1`] = `
261272
},
262273
"category": "Subdomain",
263274
"description": "Found subdomain backend.securecodebox.io",
275+
"identified_at": "2019-10-04T21:35:22.000Z",
264276
"location": "backend.securecodebox.io",
265277
"name": "backend.securecodebox.io",
266278
"osi_layer": "NETWORK",
@@ -283,6 +295,7 @@ exports[`example parser parses large json result successfully 1`] = `
283295
},
284296
"category": "Subdomain",
285297
"description": "Found subdomain zap.securecodebox.io",
298+
"identified_at": "2019-10-04T21:35:22.000Z",
286299
"location": "zap.securecodebox.io",
287300
"name": "zap.securecodebox.io",
288301
"osi_layer": "NETWORK",
@@ -305,6 +318,7 @@ exports[`example parser parses large json result successfully 1`] = `
305318
},
306319
"category": "Subdomain",
307320
"description": "Found subdomain bodgeit.securecodebox.io",
321+
"identified_at": "2019-10-04T21:35:22.000Z",
308322
"location": "bodgeit.securecodebox.io",
309323
"name": "bodgeit.securecodebox.io",
310324
"osi_layer": "NETWORK",
@@ -327,6 +341,7 @@ exports[`example parser parses large json result successfully 1`] = `
327341
},
328342
"category": "Subdomain",
329343
"description": "Found subdomain api-management.securecodebox.io",
344+
"identified_at": "2019-10-04T21:35:22.000Z",
330345
"location": "api-management.securecodebox.io",
331346
"name": "api-management.securecodebox.io",
332347
"osi_layer": "NETWORK",
@@ -349,6 +364,7 @@ exports[`example parser parses large json result successfully 1`] = `
349364
},
350365
"category": "Subdomain",
351366
"description": "Found subdomain dvwa.securecodebox.io",
367+
"identified_at": "2019-10-04T21:35:23.000Z",
352368
"location": "dvwa.securecodebox.io",
353369
"name": "dvwa.securecodebox.io",
354370
"osi_layer": "NETWORK",
@@ -371,6 +387,7 @@ exports[`example parser parses large json result successfully 1`] = `
371387
},
372388
"category": "Subdomain",
373389
"description": "Found subdomain prometheus.securecodebox.io",
390+
"identified_at": "2019-10-04T21:35:23.000Z",
374391
"location": "prometheus.securecodebox.io",
375392
"name": "prometheus.securecodebox.io",
376393
"osi_layer": "NETWORK",
@@ -393,6 +410,7 @@ exports[`example parser parses large json result successfully 1`] = `
393410
},
394411
"category": "Subdomain",
395412
"description": "Found subdomain engine.securecodebox.io",
413+
"identified_at": "2019-10-04T21:35:23.000Z",
396414
"location": "engine.securecodebox.io",
397415
"name": "engine.securecodebox.io",
398416
"osi_layer": "NETWORK",
@@ -415,6 +433,7 @@ exports[`example parser parses large json result successfully 1`] = `
415433
},
416434
"category": "Subdomain",
417435
"description": "Found subdomain logging.securecodebox.io",
436+
"identified_at": "2019-10-04T21:35:23.000Z",
418437
"location": "logging.securecodebox.io",
419438
"name": "logging.securecodebox.io",
420439
"osi_layer": "NETWORK",
@@ -437,6 +456,7 @@ exports[`example parser parses large json result successfully 1`] = `
437456
},
438457
"category": "Subdomain",
439458
"description": "Found subdomain petstoreapi.securecodebox.io",
459+
"identified_at": "2019-10-04T21:35:24.000Z",
440460
"location": "petstoreapi.securecodebox.io",
441461
"name": "petstoreapi.securecodebox.io",
442462
"osi_layer": "NETWORK",
@@ -459,6 +479,7 @@ exports[`example parser parses large json result successfully 1`] = `
459479
},
460480
"category": "Subdomain",
461481
"description": "Found subdomain jenkins.securecodebox.io",
482+
"identified_at": "2019-10-04T21:35:24.000Z",
462483
"location": "jenkins.securecodebox.io",
463484
"name": "jenkins.securecodebox.io",
464485
"osi_layer": "NETWORK",
@@ -481,6 +502,7 @@ exports[`example parser parses large json result successfully 1`] = `
481502
},
482503
"category": "Subdomain",
483504
"description": "Found subdomain bridge.securecodebox.io",
505+
"identified_at": "2019-10-04T21:35:24.000Z",
484506
"location": "bridge.securecodebox.io",
485507
"name": "bridge.securecodebox.io",
486508
"osi_layer": "NETWORK",
@@ -503,6 +525,7 @@ exports[`example parser parses large json result successfully 1`] = `
503525
},
504526
"category": "Subdomain",
505527
"description": "Found subdomain petstore.securecodebox.io",
528+
"identified_at": "2019-10-04T21:35:24.000Z",
506529
"location": "petstore.securecodebox.io",
507530
"name": "petstore.securecodebox.io",
508531
"osi_layer": "NETWORK",
@@ -525,6 +548,7 @@ exports[`example parser parses large json result successfully 1`] = `
525548
},
526549
"category": "Subdomain",
527550
"description": "Found subdomain sslyze.securecodebox.io",
551+
"identified_at": "2019-10-04T21:35:24.000Z",
528552
"location": "sslyze.securecodebox.io",
529553
"name": "sslyze.securecodebox.io",
530554
"osi_layer": "NETWORK",
@@ -547,6 +571,7 @@ exports[`example parser parses large json result successfully 1`] = `
547571
},
548572
"category": "Subdomain",
549573
"description": "Found subdomain scanner.securecodebox.io",
574+
"identified_at": "2019-10-04T21:35:25.000Z",
550575
"location": "scanner.securecodebox.io",
551576
"name": "scanner.securecodebox.io",
552577
"osi_layer": "NETWORK",
@@ -569,6 +594,7 @@ exports[`example parser parses large json result successfully 1`] = `
569594
},
570595
"category": "Subdomain",
571596
"description": "Found subdomain sieve.securecodebox.io",
597+
"identified_at": "2019-10-04T21:35:25.000Z",
572598
"location": "sieve.securecodebox.io",
573599
"name": "sieve.securecodebox.io",
574600
"osi_layer": "NETWORK",
@@ -591,6 +617,7 @@ exports[`example parser parses large json result successfully 1`] = `
591617
},
592618
"category": "Subdomain",
593619
"description": "Found subdomain securecodebox.io",
620+
"identified_at": "2019-10-04T21:35:19.000Z",
594621
"location": "securecodebox.io",
595622
"name": "securecodebox.io",
596623
"osi_layer": "NETWORK",
@@ -613,6 +640,7 @@ exports[`example parser parses large json result successfully 1`] = `
613640
},
614641
"category": "Subdomain",
615642
"description": "Found subdomain gateway.securecodebox.io",
643+
"identified_at": "2019-10-04T21:35:25.000Z",
616644
"location": "gateway.securecodebox.io",
617645
"name": "gateway.securecodebox.io",
618646
"osi_layer": "NETWORK",
@@ -635,6 +663,7 @@ exports[`example parser parses large json result successfully 1`] = `
635663
},
636664
"category": "Subdomain",
637665
"description": "Found subdomain sso.securecodebox.io",
666+
"identified_at": "2019-10-04T21:35:26.000Z",
638667
"location": "sso.securecodebox.io",
639668
"name": "sso.securecodebox.io",
640669
"osi_layer": "NETWORK",
@@ -657,6 +686,7 @@ exports[`example parser parses large json result successfully 1`] = `
657686
},
658687
"category": "Subdomain",
659688
"description": "Found subdomain test.securecodebox.io",
689+
"identified_at": "2019-10-04T21:35:26.000Z",
660690
"location": "test.securecodebox.io",
661691
"name": "test.securecodebox.io",
662692
"osi_layer": "NETWORK",
@@ -679,6 +709,7 @@ exports[`example parser parses large json result successfully 1`] = `
679709
},
680710
"category": "Subdomain",
681711
"description": "Found subdomain elasticsearch.securecodebox.io",
712+
"identified_at": "2019-10-04T21:35:27.000Z",
682713
"location": "elasticsearch.securecodebox.io",
683714
"name": "elasticsearch.securecodebox.io",
684715
"osi_layer": "NETWORK",
@@ -701,6 +732,7 @@ exports[`example parser parses large json result successfully 1`] = `
701732
},
702733
"category": "Subdomain",
703734
"description": "Found subdomain arachni.securecodebox.io",
735+
"identified_at": "2019-10-04T21:35:28.000Z",
704736
"location": "arachni.securecodebox.io",
705737
"name": "arachni.securecodebox.io",
706738
"osi_layer": "NETWORK",
@@ -723,6 +755,7 @@ exports[`example parser parses large json result successfully 1`] = `
723755
},
724756
"category": "Subdomain",
725757
"description": "Found subdomain ctf.securecodebox.io",
758+
"identified_at": "2019-10-04T21:35:28.000Z",
726759
"location": "ctf.securecodebox.io",
727760
"name": "ctf.securecodebox.io",
728761
"osi_layer": "NETWORK",
@@ -745,6 +778,7 @@ exports[`example parser parses large json result successfully 1`] = `
745778
},
746779
"category": "Subdomain",
747780
"description": "Found subdomain nmap.securecodebox.io",
781+
"identified_at": "2019-10-04T21:35:28.000Z",
748782
"location": "nmap.securecodebox.io",
749783
"name": "nmap.securecodebox.io",
750784
"osi_layer": "NETWORK",
@@ -767,6 +801,7 @@ exports[`example parser parses large json result successfully 1`] = `
767801
},
768802
"category": "Subdomain",
769803
"description": "Found subdomain discovery.securecodebox.io",
804+
"identified_at": "2019-10-04T21:36:47.000Z",
770805
"location": "discovery.securecodebox.io",
771806
"name": "discovery.securecodebox.io",
772807
"osi_layer": "NETWORK",
@@ -789,6 +824,7 @@ exports[`example parser parses large json result successfully 1`] = `
789824
},
790825
"category": "Subdomain",
791826
"description": "Found subdomain demo.securecodebox.io",
827+
"identified_at": "2019-10-04T21:36:48.000Z",
792828
"location": "demo.securecodebox.io",
793829
"name": "demo.securecodebox.io",
794830
"osi_layer": "NETWORK",
@@ -811,6 +847,7 @@ exports[`example parser parses large json result successfully 1`] = `
811847
},
812848
"category": "Subdomain",
813849
"description": "Found subdomain dashboard.securecodebox.io",
850+
"identified_at": "2019-10-04T21:36:48.000Z",
814851
"location": "dashboard.securecodebox.io",
815852
"name": "dashboard.securecodebox.io",
816853
"osi_layer": "NETWORK",
@@ -833,6 +870,7 @@ exports[`example parser parses large json result successfully 1`] = `
833870
},
834871
"category": "Subdomain",
835872
"description": "Found subdomain consul.securecodebox.io",
873+
"identified_at": "2019-10-04T21:36:48.000Z",
836874
"location": "consul.securecodebox.io",
837875
"name": "consul.securecodebox.io",
838876
"osi_layer": "NETWORK",
@@ -855,6 +893,7 @@ exports[`example parser parses large json result successfully 1`] = `
855893
},
856894
"category": "Subdomain",
857895
"description": "Found subdomain target.securecodebox.io",
896+
"identified_at": "2019-10-04T21:36:48.000Z",
858897
"location": "target.securecodebox.io",
859898
"name": "target.securecodebox.io",
860899
"osi_layer": "NETWORK",
@@ -877,6 +916,7 @@ exports[`example parser parses large json result successfully 1`] = `
877916
},
878917
"category": "Subdomain",
879918
"description": "Found subdomain vault.securecodebox.io",
919+
"identified_at": "2019-10-04T21:36:48.000Z",
880920
"location": "vault.securecodebox.io",
881921
"name": "vault.securecodebox.io",
882922
"osi_layer": "NETWORK",
@@ -899,6 +939,7 @@ exports[`example parser parses large json result successfully 1`] = `
899939
},
900940
"category": "Subdomain",
901941
"description": "Found subdomain docs.securecodebox.io",
942+
"identified_at": "2019-10-04T21:36:49.000Z",
902943
"location": "docs.securecodebox.io",
903944
"name": "docs.securecodebox.io",
904945
"osi_layer": "NETWORK",
@@ -921,6 +962,7 @@ exports[`example parser parses large json result successfully 1`] = `
921962
},
922963
"category": "Subdomain",
923964
"description": "Found subdomain nikto.securecodebox.io",
965+
"identified_at": "2019-10-04T21:36:50.000Z",
924966
"location": "nikto.securecodebox.io",
925967
"name": "nikto.securecodebox.io",
926968
"osi_layer": "NETWORK",
@@ -943,6 +985,7 @@ exports[`example parser parses large json result successfully 1`] = `
943985
},
944986
"category": "Subdomain",
945987
"description": "Found subdomain api-backend.securecodebox.io",
988+
"identified_at": "2019-10-04T21:36:51.000Z",
946989
"location": "api-backend.securecodebox.io",
947990
"name": "api-backend.securecodebox.io",
948991
"osi_layer": "NETWORK",
@@ -965,6 +1008,7 @@ exports[`example parser parses large json result successfully 1`] = `
9651008
},
9661009
"category": "Subdomain",
9671010
"description": "Found subdomain api.securecodebox.io",
1011+
"identified_at": "2019-10-04T21:36:51.000Z",
9681012
"location": "api.securecodebox.io",
9691013
"name": "api.securecodebox.io",
9701014
"osi_layer": "NETWORK",
@@ -992,6 +1036,7 @@ exports[`handles jsonl files with a single row correctly 1`] = `
9921036
},
9931037
"category": "Subdomain",
9941038
"description": "Found subdomain www.securecodebox.io",
1039+
"identified_at": "2012-04-23T18:25:43.511Z",
9951040
"location": "www.securecodebox.io",
9961041
"name": "www.securecodebox.io",
9971042
"osi_layer": "NETWORK",

scanners/amass/parser/parser.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ async function parse(fileContent) {
1616
}
1717

1818
return identifiedDomains.map((domain) => {
19+
let timestamp;
20+
if (domain.Timestamp) {
21+
timestamp = new Date(domain.Timestamp).toISOString();
22+
}
1923
return {
2024
name: domain.name,
25+
identified_at: timestamp,
2126
description: `Found subdomain ${domain.name}`,
2227
category: "Subdomain",
2328
location: domain.name,

0 commit comments

Comments
 (0)