larxius commited on
Commit
ee73287
·
verified ·
1 Parent(s): d9e2ed0

Update backend/utils/pdf_generator.py

Browse files
Files changed (1) hide show
  1. backend/utils/pdf_generator.py +25 -9
backend/utils/pdf_generator.py CHANGED
@@ -1062,20 +1062,36 @@ def generate_scan_pdf(scan, vulnerabilities):
1062
 
1063
  # Legal Disclaimer & Confidentiality Notice
1064
  elements.append(PageBreak())
1065
- disclaimer_heading = Paragraph("<b>Legal Disclaimer & Confidentiality Notice</b>", styles['Heading3'])
1066
  disclaimer_body = (
 
1067
  "This vulnerability assessment report is completely system-generated by the LarShield automated engine. "
1068
- "Due to the nature of automated scanning, there may be false positives, false negatives, or other inaccuracies. "
1069
- "This document is provided 'AS-IS' without warranty of any kind, either express or implied. "
1070
- "The findings herein represent a point-in-time snapshot of the target environment's security posture and do not guarantee complete security against all potential threats.<br/><br/>"
1071
- "<b>Limitation of Liability:</b> Under no circumstances shall LarShield or its operators be held liable for any direct, indirect, incidental, special, or consequential damages resulting from the use of, or inability to use, the information contained within this report. Any remediation actions taken based on this report are at the sole discretion and responsibility of the target system administrators."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1072
  )
1073
  disclaimer_table = Table([[disclaimer_heading], [Paragraph(disclaimer_body, normal)]], colWidths=[460])
1074
  disclaimer_table.setStyle(TableStyle([
1075
- ('BACKGROUND', (0,0), (-1,-1), colors.HexColor("#F3F4F6")),
1076
- ('GRID', (0,0), (-1,-1), 0.5, colors.HexColor("#D1D5DB")),
1077
- ('TOPPADDING', (0,0), (-1,-1), 10),
1078
- ('BOTTOMPADDING', (0,0), (-1,-1), 10),
1079
  ('LEFTPADDING', (0,0), (-1,-1), 12),
1080
  ('RIGHTPADDING', (0,0), (-1,-1), 12),
1081
  ]))
 
1062
 
1063
  # Legal Disclaimer & Confidentiality Notice
1064
  elements.append(PageBreak())
1065
+ disclaimer_heading = Paragraph("<b>Legal Disclaimer, Scope Boundaries & Limitation of Liability</b>", styles['Heading3'])
1066
  disclaimer_body = (
1067
+ "<b>1. Nature of Automated Security Assessment (\"AS-IS\" Provision)</b><br/>"
1068
  "This vulnerability assessment report is completely system-generated by the LarShield automated engine. "
1069
+ "Automated security scanning tools inspect web applications, APIs, network services, and infrastructure against known vulnerability signatures, heuristic patterns, and behavioral anomalies. "
1070
+ "Due to the dynamic and evolving nature of security threats, automated assessments may contain false positives (incorrectly identified flaws), false negatives (undetected vulnerabilities), or incomplete contextual findings. "
1071
+ "This document is provided strictly on an <b>\"AS-IS\" and \"AS-AVAILABLE\" basis</b> without warranties or guarantees of any kind, whether express, implied, statutory, or otherwise, including but not limited to implied warranties of merchantability, fitness for a particular purpose, non-infringement, or absolute system security.<br/><br/>"
1072
+ "<b>2. Point-in-Time Evaluation & Scope Limitations</b><br/>"
1073
+ "The findings, CVSS scoring, and risk calculations presented herein reflect a strict point-in-time snapshot of the target environment at the exact timestamp of scan execution. "
1074
+ "Application updates, server configuration changes, firewall rule modifications, third-party component updates, or emerging zero-day exploits occurring after scan execution may fundamentally alter the target security posture. "
1075
+ "LarShield makes no representation or warranty that target systems are completely immune to cyberattacks, unauthorized intrusion, data breaches, or operational disruptions.<br/><br/>"
1076
+ "<b>3. Authorization & Compliance Verification</b><br/>"
1077
+ "By initiating or scheduling security assessments using the LarShield platform, the requesting user or organization explicitly warrants and certifies that they possess full, legally verifiable authorization from all relevant infrastructure, network, and application owners to conduct security assessments against designated target endpoints. "
1078
+ "LarShield disclaims all legal liability resulting from unauthorized scanning, misconfigured target inputs, or scans conducted against assets without explicit consent.<br/><br/>"
1079
+ "<b>4. Strict Limitation of Liability</b><br/>"
1080
+ "To the maximum extent permitted under applicable laws, under no circumstances shall LarShield, its parent company, operators, developers, officers, affiliates, or service providers be held liable for any direct, indirect, incidental, special, punitive, exemplary, or consequential damages whatsoever (including, without limitation, loss of business revenue, commercial profit, operational downtime, data corruption, unauthorized data access, regulatory fines, or third-party claims) arising out of or in connection with the use of, reliance upon, or inability to use this report or any security patch, configuration change, or remediation advice contained within.<br/><br/>"
1081
+ "<b>5. Remediation & Patching Responsibility</b><br/>"
1082
+ "All remediation guidance, code recommendations, and security configuration changes outlined in this report are advisory only. "
1083
+ "Target system administrators and security personnel are solely responsible for thoroughly validating, testing, and reviewing any remediation steps in a non-production staging environment prior to production deployment. "
1084
+ "LarShield assumes no responsibility for application breakage, service outage, or system instability resulting from remediation actions taken based on this report.<br/><br/>"
1085
+ "<b>6. Proprietary Confidentiality Notice</b><br/>"
1086
+ "This report contains sensitive, proprietary vulnerability intelligence regarding the client organization's digital assets. "
1087
+ "Unauthorized distribution, public exposure, or reproduction of this document without prior written authorization from both the client organization and LarShield is strictly prohibited."
1088
  )
1089
  disclaimer_table = Table([[disclaimer_heading], [Paragraph(disclaimer_body, normal)]], colWidths=[460])
1090
  disclaimer_table.setStyle(TableStyle([
1091
+ ('BACKGROUND', (0,0), (-1,-1), colors.HexColor("#F8FAFC")),
1092
+ ('GRID', (0,0), (-1,-1), 0.5, colors.HexColor("#CBD5E1")),
1093
+ ('TOPPADDING', (0,0), (-1,-1), 12),
1094
+ ('BOTTOMPADDING', (0,0), (-1,-1), 12),
1095
  ('LEFTPADDING', (0,0), (-1,-1), 12),
1096
  ('RIGHTPADDING', (0,0), (-1,-1), 12),
1097
  ]))