INNER CODE UNIT · Python

format_slack_message

rohitcoder/hawk-eye · hawk_scanner/main.py:50

def format_slack_message(group, result, records_mini, mention):
    template_map = {
        's3': """
        *** PII Or Secret Found ***
        Data Source: S3 Bucket - {vulnerable_profile}
        Bucket: {bucket}
        File Path: {file_path}
        Pattern Name: {pattern_name}
        Total Exposed: {total_exposed}
        Exposed Values: {exposed_values}
        """,
        'mysql': """
        *** PII Or Secret Found ***
        Data Source: MySQL - {vulnerable_profile}
        Host: {host}
        Database: {database}
        Table: {table}
        Column: {column}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…