Skip to content

Commit 954df84

Browse files
committed
Released version 0.1.5
1 parent e3f6812 commit 954df84

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

hawk_scanner/main.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,40 @@ def main():
163163

164164
system.SlackNotify(AlertMsg)
165165

166+
elif group == 'postgresql':
167+
table.add_row(
168+
str(i),
169+
result['profile'],
170+
f"{result['host']} > {result['database']} > {result['table']}.{result['column']}",
171+
result['pattern_name'],
172+
str(len(result['matches'])),
173+
str(', '.join(result['matches'])),
174+
result['sample_text'],
175+
)
176+
177+
# Slack notification for PostgreSQL
178+
AlertMsg = """
179+
*** PII Or Secret Found ***
180+
Data Source: PostgreSQL
181+
Host: {host}
182+
Database: {database}
183+
Table: {table}
184+
Column: {column}
185+
Pattern Name: {pattern_name}
186+
Total Exposed: {total_exposed}
187+
Exposed Values: {exposed_values}
188+
""".format(
189+
host=result['host'],
190+
database=result['database'],
191+
table=result['table'],
192+
column=result['column'],
193+
pattern_name=result['pattern_name'],
194+
total_exposed=str(len(result['matches'])),
195+
exposed_values=', '.join(result['matches'])
196+
)
197+
198+
system.SlackNotify(AlertMsg)
199+
166200
elif group == 'redis':
167201
table.add_row(
168202
str(i),

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = "0.1.4"
1+
VERSION = "0.1.5"
22

33
from setuptools import setup, find_packages
44

0 commit comments

Comments
 (0)