package writer const htmlTemplate = ` {{.ReportName}} - RMM Hunter Report
KrakenTech LLC
https://krakensec.tech
{{.ReportName}}
Risk Level: {{.RiskRating.Rating}} ({{printf "%.1f" .RiskRating.Score}}/10)
{{printf "%.1f" .RiskRating.Score}}
{{/* === Sections === */}} {{define "section"}}
{{.Title}} {{.Count}}
{{if .HasItems}} {{range .Items}}
{{.}}
{{end}} {{else}}
No {{.Title}} found
{{end}}
{{end}}
Suspicious Processes {{len .Findings.Processes}}
{{if .Findings.Processes}} {{range .Findings.Processes}}
{{.Name}}
PID: {{.PID}}
PPID: {{.PPID}}
{{if .Path}}
Path: {{.Path}}
{{end}} {{if .Parent}}
Parent: {{.Parent}}
{{end}} {{if .Args}}
Args: {{.Args}}
{{end}}
{{end}} {{else}}
No suspicious processes found
{{end}}
Suspicious Services {{len .Findings.Services}}
{{if .Findings.Services}} {{range .Findings.Services}}
{{.DisplayName}}
Name: {{.Name}}
Binary Path: {{.BinaryPathName}}
Start Type: {{.StartType}}
{{if .Description}}
Description: {{.Description}}
{{end}}
{{end}} {{else}}
No suspicious services found
{{end}}
Suspicious Outbound Connections {{len .Findings.OutboundConnections}}
{{if .Findings.OutboundConnections}} {{range .Findings.OutboundConnections}}
{{.Process}}
Local: {{.LocalAddr}}
Remote: {{.RemoteAddr}}
{{if .RemoteHost}}
Host: {{.RemoteHost}}
{{end}}
State: {{.State}}
PID: {{.PID}}
{{end}} {{else}}
No suspicious outbound connections found
{{end}}
Suspicious Scheduled Tasks {{len .Findings.ScheduledTasks}}
{{if .Findings.ScheduledTasks}} {{range .Findings.ScheduledTasks}}
{{.Name}}
{{if .Author}}
Author: {{.Author}}
{{end}} {{if .Path}}
Path: {{.Path}}
{{end}}
State: {{.State}}
Enabled: {{.Enabled}}
{{if .Description}}
Description: {{.Description}}
{{end}} {{if .LastRun}}
Last Run: {{.LastRun}}
{{end}} {{if .NextRun}}
Next Run: {{.NextRun}}
{{end}}
{{end}} {{else}}
No suspicious scheduled tasks found
{{end}}
Suspicious AutoRuns {{len .Findings.AutoRuns}}
{{if .Findings.AutoRuns}} {{range .Findings.AutoRuns}}
{{.Name}}
Command: {{.Command}}
Location: {{.Location}}
Enabled: {{.Enabled}}
{{if .Description}}
Description: {{.Description}}
{{end}}
{{end}} {{else}}
No suspicious autoruns found
{{end}}
Suspicious Binaries {{len .Findings.Binaries}}
{{if .Findings.Binaries}} {{range .Findings.Binaries}}
{{.}}
{{end}} {{else}}
No suspicious binaries found
{{end}}
Suspicious Directories {{len .Findings.Directories}}
{{if .Findings.Directories}} {{range .Findings.Directories}}
{{.}}
{{end}} {{else}}
No suspicious directories found
{{end}}
`