diff --git a/Containerfile b/Containerfile index e0b8f45..b4cc648 100644 --- a/Containerfile +++ b/Containerfile @@ -1,16 +1,19 @@ FROM python:3.13-slim-trixie WORKDIR /opt/hulud_check -RUN apt-get update && apt-get install -y ripgrep git +RUN apt-get update && apt-get install -y ripgrep git curl ADD check_gitlab.py . -ADD pyproject.toml -RUN pip install . +ADD pyproject.toml . +RUN pip3 install . -COPY < sha1-hulud-2-packages.csv -tail -n +2 sha1-hulud-2-packages.csv | awk -F ',' '{print $1}' > patternfile -python3 check_gitlab.py +echo "Get most recent defintions" +curl -s https://raw.githubusercontent.com/wiz-sec-public/wiz-research-iocs/refs/heads/main/reports/shai-hulud-2-packages.csv > sha1-hulud-2-packages.csv +echo "Format patterns" +tail -n +2 sha1-hulud-2-packages.csv | awk -F ',' '{print \$1}' > patternfile +echo "Running check" +python3 -u check_gitlab.py EOF -ENTRYPOINT [] \ No newline at end of file +ENTRYPOINT ["/opt/hulud_check/entrypoint.sh"] \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 8846355..e464f41 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,6 +4,6 @@ description = "Quick hacky check for sha1-hulud" version = "2025.0.0" requires-python = ">=3.13" dependencies = [ - "GitPython" = ">=3.1.45", - "requests" = ">=2.32.5" + "GitPython>=3.1.45", + "requests>=2.32.5" ]