Skip to content

Commit 2e967fc

Browse files
igorski-r7rmurray-r7
authored andcommitted
Crowdstrike Falcon Intelligence - 16877 - New action added: Upload Malware Sample | Updated SDK to the latest version (#2918)
1 parent 3f8ae33 commit 2e967fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1850
-3245
lines changed
Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,43 @@
11
{
2-
"spec": "7c7b6f205e09b0c7f5deb31fe0f99610",
3-
"manifest": "afec6aa4a72f7d5adfcaa33e693e49d4",
4-
"setup": "5b4346fa75c78350298f5de8407d989b",
2+
"spec": "bca05caa222aec0f714b712f496460c2",
3+
"manifest": "afdb962b3049ec3c26e64bd74f3845f0",
4+
"setup": "97a6c06a57546bbc57a253436e4ca559",
55
"schemas": [
66
{
77
"identifier": "checkAnalysisStatus/schema.py",
8-
"hash": "b33491d2d597f6e98afc65a472df3cef"
8+
"hash": "12fd58e742d161c70cc8ec7cda83757a"
99
},
1010
{
1111
"identifier": "downloadArtifact/schema.py",
12-
"hash": "2ca7c6d488baaf4f6e20bf3f96dc694c"
12+
"hash": "5ea60d06ef05140eaf3a1f01fd445e63"
1313
},
1414
{
1515
"identifier": "getFullReport/schema.py",
16-
"hash": "6e729794f718416ff53344586ef9cc78"
16+
"hash": "035f4efe2488b60ac649df07bfac8313"
1717
},
1818
{
1919
"identifier": "getReportsIDs/schema.py",
20-
"hash": "2edc81eb0a7546bb0b9b14d0b985c5a5"
20+
"hash": "b5636243ce257e3cb52f51f31d57868f"
2121
},
2222
{
2323
"identifier": "getShortReport/schema.py",
24-
"hash": "2f85634b911c8eabbdbcf6204f0a25c0"
24+
"hash": "8fcd82d864a2a039734a5bc2336fb323"
2525
},
2626
{
2727
"identifier": "getSubmissionsIDs/schema.py",
28-
"hash": "b53506b55ad8003fd347bf0bc95ef19e"
28+
"hash": "bcd8d0c7824a9f85c70f8cec4237614f"
2929
},
3030
{
3131
"identifier": "submitAnalysis/schema.py",
32-
"hash": "115798e956c58449ba2eef7a288ec95f"
32+
"hash": "405eb43871561756ca0bdbd41af48058"
33+
},
34+
{
35+
"identifier": "uploadMalwareSample/schema.py",
36+
"hash": "dff311370f3503cc5b4d506ec0a4e8f3"
3337
},
3438
{
3539
"identifier": "connection/schema.py",
36-
"hash": "137057253a8e6ce38707b2ad62d4a4b0"
40+
"hash": "39ebbb9d8b8ba4c668ea6b6986841962"
3741
}
3842
]
3943
}
Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
1-
FROM rapid7/insightconnect-python-3-38-plugin:4
2-
# Refer to the following documentation for available SDK parent images: https://komand.github.io/python/sdk.html#version
1+
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.1.4
32

43
LABEL organization=rapid7
54
LABEL sdk=python
65

7-
# Add any custom package dependencies here
8-
# NOTE: Add pip packages to requirements.txt
9-
10-
# End package dependencies
11-
12-
# Add source code
136
WORKDIR /python/src
7+
148
ADD ./plugin.spec.yaml /plugin.spec.yaml
15-
ADD . /python/src
9+
ADD ./requirements.txt /python/src/requirements.txt
1610

17-
# Install pip dependencies
1811
RUN if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
1912

20-
# Install plugin
13+
ADD . /python/src
14+
2115
RUN python setup.py build && python setup.py install
2216

2317
# User to run plugin code. The two supported users are: root, nobody
2418
USER nobody
2519

26-
ENTRYPOINT ["/usr/local/bin/icon_crowdstrike_falcon_intelligence"]
20+
ENTRYPOINT ["/usr/local/bin/icon_crowdstrike_falcon_intelligence"]

plugins/crowdstrike_falcon_intelligence/bin/icon_crowdstrike_falcon_intelligence

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env python
2-
# GENERATED BY KOMAND SDK - DO NOT EDIT
2+
# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT
33
import os
44
import json
55
from sys import argv
66

77
Name = "CrowdStrike Falcon Intelligence"
88
Vendor = "rapid7"
9-
Version = "1.0.0"
9+
Version = "1.1.0"
1010
Description = "CrowdStrike Falcon Intelligence is used to automatically investigate incidents and accelerate alert triage and response. Built into the Falcon Platform, it is operational in seconds"
1111

1212

@@ -23,7 +23,7 @@ def main():
2323
monkey.patch_all()
2424

2525
import insightconnect_plugin_runtime
26-
from icon_crowdstrike_falcon_intelligence import connection, actions, triggers
26+
from icon_crowdstrike_falcon_intelligence import connection, actions, triggers, tasks
2727

2828
class ICONCrowdstrikeFalconIntelligence(insightconnect_plugin_runtime.Plugin):
2929
def __init__(self):
@@ -34,20 +34,22 @@ def main():
3434
description=Description,
3535
connection=connection.Connection()
3636
)
37-
self.add_action(actions.CheckAnalysisStatus())
38-
3937
self.add_action(actions.DownloadArtifact())
40-
38+
39+
self.add_action(actions.GetShortReport())
40+
4141
self.add_action(actions.GetFullReport())
42-
42+
43+
self.add_action(actions.CheckAnalysisStatus())
44+
45+
self.add_action(actions.SubmitAnalysis())
46+
4347
self.add_action(actions.GetReportsIDs())
44-
45-
self.add_action(actions.GetShortReport())
46-
48+
4749
self.add_action(actions.GetSubmissionsIDs())
48-
49-
self.add_action(actions.SubmitAnalysis())
50-
50+
51+
self.add_action(actions.UploadMalwareSample())
52+
5153

5254
"""Run plugin"""
5355
cli = insightconnect_plugin_runtime.CLI(ICONCrowdstrikeFalconIntelligence())

0 commit comments

Comments
 (0)