Skip to content

Commit 9728293

Browse files
committed
Add versionAPI, documentation and change format of finding.
Signed-off-by: Joel Saß <joel.sass@iteratec.com>
1 parent 8784716 commit 9728293

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

scanners/subfinder/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ version: v3.1.0-alpha1
1212
appVersion: "v2.7.0"
1313
kubeVersion: ">=v1.11.0-0"
1414
annotations:
15-
#versionApi: https://api.github.com/repos/REPONAME/REPO/releases/latest
15+
versionApi: https://api.github.com/repos/projectdiscovery/subfinder/releases/latest
1616
# supported cpu architectures for which docker images for the scanner should be build, e.g. "linux/amd64,linux/arm64"
1717
supported-platforms: linux/amd64
1818
keywords:

scanners/subfinder/examples/securecodebox.io/active/scan.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99
spec:
1010
scanType: "subfinder"
1111
parameters:
12-
- "-active"
13-
- "-ip"
12+
- "-active" # Active Scans resolve the identified subdomains and filter out inactive subdomains.
13+
- "-ip" # Only possible for active scans.
1414
- "-d"
1515
- "securecodebox.io"

scanners/subfinder/parser/parser.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ function transformToFindings(targets) {
2020
"osi_layer": "NETWORK",
2121
"severity": "INFORMATIONAL",
2222
"attributes": {
23-
"addresses": {
24-
"ip": item?.ip || null
25-
},
2623
"domain": item.input,
2724
"hostname": item.host,
2825
"ip_address": item?.ip || null,
26+
"ip_addresses": [item?.ip || null].filter(Boolean),
2927
"source": item.source,
3028
}
3129
}

0 commit comments

Comments
 (0)