Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Warden
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
Pavel Valach
Warden
Commits
3b7eaf04
Commit
3b7eaf04
authored
7 years ago
by
Pavel Kácha
Browse files
Options
Downloads
Patches
Plain Diff
Now adding correct protocols
parent
0ff7a3a2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
warden3/contrib/connectors/hp-labrea/labrea-idea.py
+8
-5
8 additions, 5 deletions
warden3/contrib/connectors/hp-labrea/labrea-idea.py
with
8 additions
and
5 deletions
warden3/contrib/connectors/hp-labrea/labrea-idea.py
+
8
−
5
View file @
3b7eaf04
...
@@ -259,13 +259,15 @@ class IdeaGen(object):
...
@@ -259,13 +259,15 @@ class IdeaGen(object):
"
category
"
:
[
"
Recon.Scanning
"
],
"
category
"
:
[
"
Recon.Scanning
"
],
"
description
"
:
"
TCP connections/scan
"
,
"
description
"
:
"
TCP connections/scan
"
,
"
template
"
:
"
labrea-001
"
,
"
template
"
:
"
labrea-001
"
,
"
note
"
:
"
Connections from remote host to never assigned IP
"
"
note
"
:
"
Connections from remote host to never assigned IP
"
,
"
proto
"
:
[
"
tcp
"
]
},
},
"
ping
"
:
{
"
ping
"
:
{
"
category
"
:
[
"
Recon.Scanning
"
],
"
category
"
:
[
"
Recon.Scanning
"
],
"
description
"
:
"
Ping scan
"
,
"
description
"
:
"
Ping scan
"
,
"
template
"
:
"
labrea-002
"
,
"
template
"
:
"
labrea-002
"
,
"
note
"
:
"
Ping requests from remote host to never assigned IP
"
"
note
"
:
"
Ping requests from remote host to never assigned IP
"
,
"
proto
"
:
[
"
icmp
"
]
},
},
"
synack
"
:
{
"
synack
"
:
{
"
category
"
:
[
"
Availability.DoS
"
],
"
category
"
:
[
"
Availability.DoS
"
],
...
@@ -273,7 +275,8 @@ class IdeaGen(object):
...
@@ -273,7 +275,8 @@ class IdeaGen(object):
"
template
"
:
"
labrea-003
"
,
"
template
"
:
"
labrea-003
"
,
"
note
"
:
"
Unsolicited SYN/ACK packet received from remote host to never assigned IP
"
,
"
note
"
:
"
Unsolicited SYN/ACK packet received from remote host to never assigned IP
"
,
"
source_type
"
:
[
"
Backscatter
"
],
"
source_type
"
:
[
"
Backscatter
"
],
"
source_to_target
"
:
True
"
source_to_target
"
:
True
,
"
proto
"
:
[
"
tcp
"
]
}
}
}
}
...
@@ -284,7 +287,7 @@ class IdeaGen(object):
...
@@ -284,7 +287,7 @@ class IdeaGen(object):
tmpl
=
self
.
template
[
template
]
tmpl
=
self
.
template
[
template
]
isource
=
{
isource
=
{
"
IP6
"
if
"
:
"
in
src
else
"
IP4
"
:
[
src
],
"
IP6
"
if
"
:
"
in
src
else
"
IP4
"
:
[
src
],
"
Proto
"
:
[
"
tcp
"
]
"
Proto
"
:
tmpl
[
"
proto
"
]
}
}
if
"
source_type
"
in
tmpl
:
if
"
source_type
"
in
tmpl
:
isource
[
"
Type
"
]
=
tmpl
[
"
source_type
"
]
isource
[
"
Type
"
]
=
tmpl
[
"
source_type
"
]
...
@@ -296,7 +299,7 @@ class IdeaGen(object):
...
@@ -296,7 +299,7 @@ class IdeaGen(object):
folded_tgt
.
setdefault
(
frozenset
(
ports
),
[]).
append
(
tgt
)
folded_tgt
.
setdefault
(
frozenset
(
ports
),
[]).
append
(
tgt
)
itargets
=
[]
itargets
=
[]
for
ports
,
tgt
in
folded_tgt
.
items
():
for
ports
,
tgt
in
folded_tgt
.
items
():
itarget
=
{
"
Proto
"
:
[
"
tcp
"
]}
itarget
=
{
"
Proto
"
:
tmpl
[
"
proto
"
]}
tgts4
=
[
ip
for
ip
in
tgt
if
"
:
"
not
in
ip
]
tgts4
=
[
ip
for
ip
in
tgt
if
"
:
"
not
in
ip
]
tgts6
=
[
ip
for
ip
in
tgt
if
"
:
"
in
ip
]
tgts6
=
[
ip
for
ip
in
tgt
if
"
:
"
in
ip
]
if
tgts4
:
if
tgts4
:
...
...
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