diff --git a/modules/security/malware-scanner.sh b/modules/security/malware-scanner.sh index 132dfd2..7683406 100755 --- a/modules/security/malware-scanner.sh +++ b/modules/security/malware-scanner.sh @@ -1399,6 +1399,10 @@ else echo "⚠️ Scan Validation: $validation_issues issue(s) found - review logs" >> "$SUMMARY_FILE" fi +# Generate client report automatically +log_message "Generating client-facing security report" +generate_client_report "$SCAN_DIR" > /dev/null 2>&1 + # Display completion clear echo "==========================================" @@ -1411,6 +1415,9 @@ echo "Results saved to:" echo " Summary: $SUMMARY_FILE" echo " Logs: $LOG_DIR/" echo "" +echo -e "${CYAN}Client Report (copy/paste for tickets):${NC}" +echo " $RESULTS_DIR/client_report.txt" +echo "" # Show summary cat "$SUMMARY_FILE" @@ -1418,6 +1425,9 @@ cat "$SUMMARY_FILE" echo "" echo "==========================================" echo "" +echo -e "${CYAN}TIP:${NC} To view the client-friendly report:" +echo " cat $RESULTS_DIR/client_report.txt" +echo "" # Prompt for cleanup (RKHunter cleanup handled by trap) read -p "Delete scan script? (Logs and results will be preserved) (yes/no): " cleanup_choice