Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Penify]: Setting up Automated AI-Driven Documentation for GitHub! #9

Merged
merged 1 commit into from
Aug 3, 2024

Penify config file

5880ece
Select commit
Loading
Failed to load commit list.
Merged

[Penify]: Setting up Automated AI-Driven Documentation for GitHub! #9

Penify config file
5880ece
Select commit
Loading
Failed to load commit list.
NShiftKey / NShiftKey - Dockerfile & IaC misconfiguration required action Aug 3, 2024 in 4m 31s

Summary

  • 7 security issue(s)
    • High : 3
    • Medium : 2
    • Low : 2

Details

NShiftKey

  • 'apt-get' missing '--no-install-recommends'

    • Description : 'apt-get' install should use '--no-install-recommends' to minimize image size.
    • Countermeasure : '--no-install-recommends' flag is missed: 'apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake git python3 doxygen graphviz upx openssl libssl-dev zlib1g-dev autoconf automake pkg-config m4 libtool python-is-python3'

  • 'RUN cd ...' to change directory

    • Description : Use WORKDIR instead of proliferating instructions like 'RUN cd … && do-something', which are hard to read, troubleshoot, and maintain.
    • Countermeasure : RUN should not be used to change directory: 'git clone https://github.com/avast/retdec && cd retdec && mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/home/retdec/retdec-install -DCMAKE_LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/ -DCMAKE_BUILD_TYPE=Release && make -j$(nproc) && make install'. Use 'WORKDIR' statement instead.
      • Target Code : avast-retdec/Dockerfile [view change history] [ignore this]

        avast-retdec/Dockerfile

        Lines 26 to 34 in 5880ece

        USER retdec
        RUN git clone https://github.com/avast/retdec && \
        cd retdec && \
        mkdir build && \
        cd build && \
        cmake .. -DCMAKE_INSTALL_PREFIX=/home/retdec/retdec-install -DCMAKE_LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/ -DCMAKE_BUILD_TYPE=Release && \
        make -j$(nproc) && \
        make install

        Β Β 
      • Target Code : avast-retdec/Dockerfile.dev [view change history] [ignore this]
        USER retdec
        RUN cd retdec && \
        mkdir build && \
        cd build && \
        cmake .. -DCMAKE_INSTALL_PREFIX=/home/retdec/retdec-install -DCMAKE_LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/ && \
        make -j$(nproc) && \
        make install

        Β Β