Skip to content

Commit

Permalink
#1209 fix requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Aug 4, 2023
1 parent 2e4ee92 commit aec22a9
Show file tree
Hide file tree
Showing 17 changed files with 120 additions and 1 deletion.
5 changes: 5 additions & 0 deletions analyzers/Censys/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3-slim
WORKDIR /worker
COPY . Censys
RUN test ! -e Censys/requirements.txt || pip install --no-cache-dir -r Censys/requirements.txt
ENTRYPOINT Censys/censys_analyzer.py
5 changes: 5 additions & 0 deletions analyzers/CheckPhish/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3-slim
WORKDIR /worker
COPY . CheckPhish
RUN test ! -e CheckPhish/requirements.txt || pip install --no-cache-dir -r CheckPhish/requirements.txt
ENTRYPOINT CheckPhish/CheckPhish.py
5 changes: 5 additions & 0 deletions analyzers/Crtsh/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3-slim
WORKDIR /worker
COPY . Crtsh
RUN test ! -e Crtsh/requirements.txt || pip install --no-cache-dir -r Crtsh/requirements.txt
ENTRYPOINT Crtsh/crtshquery.py
8 changes: 8 additions & 0 deletions analyzers/DShield/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM python:3.9

WORKDIR /worker
COPY . DShield

RUN pip install --no-cache-dir -r DShield/requirements.txt

ENTRYPOINT DShield/DShield_lookup.py
5 changes: 5 additions & 0 deletions analyzers/FalconSandbox/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3
WORKDIR /worker
COPY . FalconSandbox
RUN test ! -e FalconSandbox/requirements.txt || pip install --no-cache-dir -r FalconSandbox/requirements.txt
ENTRYPOINT FalconSandbox/FalconSandbox.py
5 changes: 5 additions & 0 deletions analyzers/GoogleDNS/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3-slim
WORKDIR /worker
COPY . GoogleDNS
RUN test ! -e GoogleDNS/requirements.txt || pip install --no-cache-dir -r GoogleDNS/requirements.txt
ENTRYPOINT GoogleDNS/GoogleDNS_resolve.py
5 changes: 5 additions & 0 deletions analyzers/Maltiverse/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3-slim
WORKDIR /worker
COPY . Maltiverse
RUN test ! -e Maltiverse/requirements.txt || pip install --no-cache-dir -r Maltiverse/requirements.txt
ENTRYPOINT Maltiverse/maltiverse-client.py
5 changes: 5 additions & 0 deletions analyzers/Threatcrowd/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3-slim
WORKDIR /worker
COPY . Threatcrowd
RUN test ! -e Threatcrowd/requirements.txt || pip install --no-cache-dir -r Threatcrowd/requirements.txt
ENTRYPOINT Threatcrowd/threatcrowd_analyzer.py
5 changes: 5 additions & 0 deletions analyzers/Verifalia/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3.9-slim
WORKDIR /worker
COPY . Verifalia
RUN test ! -e Verifalia/requirements.txt || pip install --no-cache-dir -r Verifalia/requirements.txt
ENTRYPOINT Verifalia/Verifalia.py
11 changes: 11 additions & 0 deletions analyzers/VirusTotal/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:3.9

WORKDIR /worker
COPY . VirusTotal
RUN apt update
RUN apt install -y -q libimage-exiftool-perl && \
rm -rf /var/lib/apt/lists/*

RUN pip install --no-cache-dir -r VirusTotal/requirements.txt

ENTRYPOINT VirusTotal/virustotal.py
3 changes: 2 additions & 1 deletion responders/CheckPoint/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
cortexutils
-e git+https://github.com/CheckPointSW/cp_mgmt_api_python_sdk#egg=cpapi cpapi
# -e git+https://github.com/CheckPointSW/cp_mgmt_api_python_sdk#egg=cpapi cpapi
git+https://github.com/CheckPointSW/cp_mgmt_api_python_sdk
1 change: 1 addition & 0 deletions responders/CheckPoint/src/cpapi
Submodule cpapi added at 325c7a
21 changes: 21 additions & 0 deletions responders/MSDefenderEndpoints/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## To test an Analyzer of Responder with docker:
#
# Copy this file in the folder of an analyzer or a responder and name it Dockerfile
## edit it and Change variables
#
# - {workername} by the folder name of the analyzer or responder
# - {command} by the value of the `command` in a JSON file
#
# Save and run:
#
# docker build -t cortexneurons/{flavor_name}:devel with {flavor_name} the name of the analyzer of responder in the JSON file
#
#



FROM python:3
WORKDIR /worker
COPY . MSDefenderEndpoints
RUN test ! -e MSDefenderEndpoints/requirements.txt || pip install --no-cache-dir -rMSDefenderEndpoints/requirements.txt
ENTRYPOINT MSDefenderEndpoints/MSDefenderEndpoints.py
5 changes: 5 additions & 0 deletions responders/SentinelOne/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3.10-slim
WORKDIR /worker
COPY . SentinelOne
RUN test ! -e SentinelOne/requirements.txt || pip install --no-cache-dir -r SentinelOne/requirements.txt
ENTRYPOINT "SentinelOne/SentinelOne.py"
1 change: 1 addition & 0 deletions responders/Test/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cortexutils
13 changes: 13 additions & 0 deletions responders/Test/test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "Test",
"version": "1.0",
"author": "Jerome Leonard",
"url": "https://github.com/TheHive-Project/Cortex-Analyzers",
"license": "AGPL-V3",
"description": "test",
"dataTypeList": ["thehive:case", "thehive:alert", "thehive:case_task"],
"command": "Test/test.py",
"baseConfig": "Test",
"configurationItems": [
]
}
18 changes: 18 additions & 0 deletions responders/Test/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env python3
# encoding: utf-8
from cortexutils.responder import Responder

class Test(Responder):
def __init__(self):
Responder.__init__(self)
self.report({"message": "test"})

def run(self):
Responder.run(self)

def operations(self, raw):
return [self.build_operation("AddTagToCase", tag="test")]


if __name__ == "__main__":
Test().run()

0 comments on commit aec22a9

Please sign in to comment.