Appearance
White-Labeling
NetVuln reports support config-driven branding, so you can match the visual identity of each generated HTML report to the client engagement. This feature shipped in v2.14.0.
Overview
White-labeling works through CSS custom property overrides injected into the report HTML at generation time. The rt_brand_overrides() function in scripts/report_template.sh reads branding variables from the config file and emits a <style> block that overrides the default theme. The subtitle and footer are substituted into their own report sections.
This approach is portal-transparent: the branding is embedded directly in the HTML report file, so it persists through portal upload, download, and sharing with no server-side processing.
Configuration Variables
Add any of these to your engagement config file (~/netvuln-tool/configs/<client>.conf). All are optional and can be used independently. The full config reference is in Report Configuration.
| Variable | Description | Example |
|---|---|---|
REPORT_PRIMARY_COLOR | Accent color used for banner borders, highlights, and header accents | #2c5aa0 |
REPORT_HEADER_BG | Header banner background color | #ffffff |
REPORT_HEADER_TEXT | Header banner text color | #1a1a1a |
REPORT_SUBTITLE | Subtitle under the main report title | Prepared for Acme Corp |
REPORT_FOOTER_TEXT | Footer text at the bottom of report pages | Acme Corp Security Assessment |
REPORT_FOOTER_URL | Footer link URL | https://acme-corp.example.com |
REPORT_FOOTER_EMAIL | Footer contact email | security@acme.example.com |
Usage
Set the branding variables in your config file and run the scan as usual:
bash
# In ~/netvuln-tool/configs/acme_corp.conf:
# REPORT_PRIMARY_COLOR="#2c5aa0"
# REPORT_HEADER_BG="#ffffff"
# REPORT_HEADER_TEXT="#1a1a1a"
# REPORT_SUBTITLE="Prepared for Acme Corp"
# REPORT_FOOTER_TEXT="Acme Corp Quarterly Security Assessment"
# REPORT_FOOTER_URL="https://acme-corp.example.com"
# REPORT_FOOTER_EMAIL="security@acme.example.com"
./scripts/vulnscan_recon.sh -t 192.168.1.0/24 --full -R report.html \
-c ~/netvuln-tool/configs/acme_corp.confThe generated report uses the specified accent color for its theme and displays the custom subtitle and footer.
How It Works
- When
generate_report.shassembles the HTML report, it callsrt_brand_overrides()fromreport_template.sh. rt_brand_overrides()checks whether any ofREPORT_PRIMARY_COLOR,REPORT_HEADER_BG, orREPORT_HEADER_TEXTare set in the sourced config.- If so, it emits a
<style>block that redefines the theme's CSS custom properties on:root:REPORT_PRIMARY_COLORoverrides--bc-redand--bc-dark-red(the accent color used across banners, borders, and highlights).REPORT_HEADER_BGoverrides--bc-header-bgand is applied to.header-banner.REPORT_HEADER_TEXToverrides--bc-header-textand is applied to the header banner and title text.
REPORT_SUBTITLE,REPORT_FOOTER_TEXT,REPORT_FOOTER_URL, andREPORT_FOOTER_EMAILare substituted directly into the report's title and footer sections.
Because the overrides use CSS custom properties, the accent color cascades through the entire report theme consistently: banners, severity badges, section headers, and accent borders all pick up the new color.
Default Behavior
If no branding variables are set, the report uses the default NetVuln / Bullium Consulting color scheme. The defaults for the text fields are:
| Field | Default |
|---|---|
| Subtitle | Bullium Consulting LLC |
| Footer text | Generated by netvuln-tool v<version>, Bullium Consulting LLC |
| Footer email | support@bullium.com |
| Footer URL | none |
Each branding variable is independent, so you can set just REPORT_PRIMARY_COLOR without touching the header colors, subtitle, or footer.
TIP
Because branding is baked into the HTML at generation time, existing portal reports are not restyled when you change config values. To restyle previously uploaded sessions, regenerate the report and re-upload with refresh_reports.sh. See Report Template.
