Template - Options

UPDATED: Please head over to our new GitHub Support Site for help, examples, tips and tricks: https://github.com/AttackForge/ReportGen

RemoveDuplicateEvidence

This option can be set at the beginning of your template in order to remove duplicate Evidence for vulnerabilities which have already used/displayed the evidence within the Proof-of-Concept or Notes for any of the affected assets, for example the images have already appeared in-line within the Proof-of-Concept or Notes.

{#$optionRemoveDuplicateEvidence}{/}

This option is useful to reduce duplicate evidence displaying, significantly reducing report size and making content more useful to the reader.

How it works:

When looping over {#affected_assets} - if the Proof of Concept or Notes includes an inline image - this image will be removed from the {#evidence} section to avoid duplication of displaying the same evidence file.

Example:

!IMPORTANT: You must include {#$optionRemoveDuplicateEvidence}{/} tag at the beginning of your template file.

{#$optionRemoveDuplicateEvidence}{/}
...
{#vulnerabilities}
VULNERABILITY: {title}
{#affected_assets}
ASSET: {asset}
NOTES:
{#notes_html}
{@note_styled(“image_description”:“caption”) | resize:[“400”]}
{/notes_html}
PROOF OF CONCEPT:
{@proof_of_concept_styled(“image_description”:“caption”) | resize:[“400”]}
{/affected_assets}
{#evidence}
{%fileBase64 | resize:[“400”]}
{fileName}
{/evidence}
{/vulnerabilities}

Last updated

Check YouTube for more tutorials: https://youtube.com/@attackforge