Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Warden Connectors
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Warden
Warden Connectors
Commits
b466db26
Commit
b466db26
authored
1 year ago
by
Pavel Valach
Browse files
Options
Downloads
Patches
Plain Diff
dionaea/log_wardenfiler.py: convert credentials from bytes to string for event output
parent
78b45cbe
No related branches found
No related tags found
1 merge request
!4
Dionaea: sanitize credentials
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dionaea/log_wardenfiler.py
+3
-3
3 additions, 3 deletions
dionaea/log_wardenfiler.py
with
3 additions
and
3 deletions
dionaea/log_wardenfiler.py
+
3
−
3
View file @
b466db26
...
@@ -413,17 +413,17 @@ class LogWardenfilerHandler(ihandler):
...
@@ -413,17 +413,17 @@ class LogWardenfilerHandler(ihandler):
def
handle_incident_dionaea_modules_python_ftp_login
(
self
,
icd
):
def
handle_incident_dionaea_modules_python_ftp_login
(
self
,
icd
):
con
=
icd
.
con
con
=
icd
.
con
self
.
_register_connection
(
con
,
"
ftp
"
,
cred
=
{
"
User
"
:
icd
.
username
,
"
Password
"
:
icd
.
password
})
self
.
_register_connection
(
con
,
"
ftp
"
,
cred
=
{
"
User
"
:
self
.
_bytes_to_str
(
icd
.
username
)
,
"
Password
"
:
self
.
_bytes_to_str
(
icd
.
password
)
})
logger
.
info
(
"
new FTP login within connection from %s:%i to %s:%i
"
%
(
con
.
remote
.
host
,
con
.
remote
.
port
,
con
.
local
.
host
,
con
.
local
.
port
))
logger
.
info
(
"
new FTP login within connection from %s:%i to %s:%i
"
%
(
con
.
remote
.
host
,
con
.
remote
.
port
,
con
.
local
.
host
,
con
.
local
.
port
))
def
handle_incident_dionaea_modules_python_mssql_login
(
self
,
icd
):
def
handle_incident_dionaea_modules_python_mssql_login
(
self
,
icd
):
con
=
icd
.
con
con
=
icd
.
con
self
.
_register_connection
(
con
,
"
ms-sql-s
"
,
cred
=
{
"
User
"
:
icd
.
username
,
"
Password
"
:
icd
.
password
})
self
.
_register_connection
(
con
,
"
ms-sql-s
"
,
cred
=
{
"
User
"
:
self
.
_bytes_to_str
(
icd
.
username
)
,
"
Password
"
:
self
.
_bytes_to_str
(
icd
.
password
)
})
logger
.
info
(
"
new MSSQL login within connection from %s:%i to %s:%i
"
%
(
con
.
remote
.
host
,
con
.
remote
.
port
,
con
.
local
.
host
,
con
.
local
.
port
))
logger
.
info
(
"
new MSSQL login within connection from %s:%i to %s:%i
"
%
(
con
.
remote
.
host
,
con
.
remote
.
port
,
con
.
local
.
host
,
con
.
local
.
port
))
def
handle_incident_dionaea_modules_python_mysql_login
(
self
,
icd
):
def
handle_incident_dionaea_modules_python_mysql_login
(
self
,
icd
):
con
=
icd
.
con
con
=
icd
.
con
self
.
_register_connection
(
con
,
"
mysql
"
,
cred
=
{
"
User
"
:
icd
.
username
,
"
Password
"
:
icd
.
password
})
self
.
_register_connection
(
con
,
"
mysql
"
,
cred
=
{
"
User
"
:
self
.
_bytes_to_str
(
icd
.
username
)
,
"
Password
"
:
self
.
_bytes_to_str
(
icd
.
password
)
})
logger
.
info
(
"
new MySQL login within connection from %s:%i to %s:%i
"
%
(
con
.
remote
.
host
,
con
.
remote
.
port
,
con
.
local
.
host
,
con
.
local
.
port
))
logger
.
info
(
"
new MySQL login within connection from %s:%i to %s:%i
"
%
(
con
.
remote
.
host
,
con
.
remote
.
port
,
con
.
local
.
host
,
con
.
local
.
port
))
def
handle_incident_dionaea_modules_python_p0f
(
self
,
icd
):
def
handle_incident_dionaea_modules_python_p0f
(
self
,
icd
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment