Skip to content

Commit d29f756

Browse files
committed
feat: expand scan finding types and optimize Docker toolchain by removing interlace and updating TruffleHog installation
1 parent 0c7c235 commit d29f756

2 files changed

Lines changed: 8 additions & 11 deletions

File tree

Dockerfile

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
99
pkg-config libssl-dev \
1010
&& rm -rf /var/lib/apt/lists/*
1111

12-
# Install external tools used by AutoAR (httpx, interlace, trufflehog)
13-
# Note: Nuclei uses SDK (go.mod), no binary needed
14-
RUN GOBIN=/go/bin go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest && \
15-
GOBIN=/go/bin go install -v github.com/codingo/interlace@latest || true
16-
17-
# Install TruffleHog (binary handled via custom build)
18-
RUN git clone --depth 1 https://github.com/trufflesecurity/trufflehog.git /tmp/trufflehog && \
19-
cd /tmp/trufflehog && go build -o /go/bin/trufflehog . && \
20-
rm -rf /tmp/trufflehog
12+
# Install external tools used by AutoAR that are called as subprocess binaries.
13+
# NOTE: httpx and nuclei are used as Go packages (go.mod), no binary needed.
14+
# NOTE: interlace was removed — replaced by native Go concurrency.
15+
# TruffleHog is called as a CLI binary by githubscan.go, so it must be installed here.
16+
RUN go install -v github.com/trufflesecurity/trufflehog/v3@latest
17+
2118
# Build AutoAR main CLI and entrypoint
2219
WORKDIR /app
2320

internal/api/ui/pages/scans-page.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
<span style="font-size:11px;color:var(--text-muted)">Phase ${currentPhase}${totalPhases > 0 ? '/' + totalPhases : ''} · ${pct}%</span>
151151
<div style="display:flex;gap:10px;align-items:center">
152152
${(() => {
153-
const isFindingType = ['dns_cf1016', 'dns-cf1016', 'nuclei', 'misconfig', 's3', 'github', 'github_org', 'zerodays', 'jwt'].includes(scanType);
153+
const isFindingType = ['dns_cf1016', 'dns-cf1016', 'dns', 'dns-takeover', 'dns-dangling-ip', 'nuclei', 'nuclei-full', 'nuclei-cves', 'nuclei-panels', 'nuclei-vulnerabilities', 'nuclei-default-logins', 'misconfig', 's3', 'github', 'github_org', 'github_scan', 'zerodays', 'jwt', 'gf', 'js', 'jsscan', 'ffuf', 'apkx', 'sqlmap', 'backup', 'reflection'].includes(scanType);
154154
const label = isFindingType ? (filesUploaded === 1 ? 'finding' : 'findings') : (filesUploaded === 1 ? 'file' : 'files');
155155
const icon = isFindingType ? '🎯' : '📁';
156156
return filesUploaded > 0 ? `<span style="font-size:10px;color:var(--text-muted)">${icon} ${filesUploaded} ${label}</span>` : '';
@@ -219,7 +219,7 @@
219219
const elapsed = completedAt ? elapsedBetween(startedAt, completedAt) : elapsedStr(startedAt);
220220
const scanID = s.scan_id || s.ScanID || '';
221221
const filesUploaded = s.files_uploaded || s.FilesUploaded || 0;
222-
const isFindingType = ['dns_cf1016', 'dns-cf1016', 'nuclei', 'misconfig', 's3', 'github', 'github_org', 'zerodays', 'jwt'].includes(scanType);
222+
const isFindingType = ['dns_cf1016', 'dns-cf1016', 'dns', 'dns-takeover', 'dns-dangling-ip', 'nuclei', 'nuclei-full', 'nuclei-cves', 'nuclei-panels', 'nuclei-vulnerabilities', 'nuclei-default-logins', 'misconfig', 's3', 'github', 'github_org', 'github_scan', 'zerodays', 'jwt', 'gf', 'js', 'jsscan', 'ffuf', 'apkx', 'sqlmap', 'backup', 'reflection'].includes(scanType);
223223
const label = isFindingType ? 'findings' : 'files';
224224
const icon = isFindingType ? '🎯' : '📁';
225225
const badgeHtml = filesUploaded > 0 ? `<span class="badge badge-running" style="font-size:10px;padding:2px 6px;margin-bottom:4px;display:inline-block;background:rgba(6,182,212,0.15);border:1px solid rgba(6,182,212,0.3);color:var(--accent-cyan);cursor:help" title="${filesUploaded} ${label} identified">${icon} ${filesUploaded} ${label}</span><br/>` : '';

0 commit comments

Comments
 (0)