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

[BUG] [build-backend 15/17] fails with Server Quickstart #335

Closed
tconnz opened this issue Feb 22, 2023 · 4 comments
Closed

[BUG] [build-backend 15/17] fails with Server Quickstart #335

tconnz opened this issue Feb 22, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@tconnz
Copy link

tconnz commented Feb 22, 2023

Describe the bug
Build fails at step [build-backend 15/17] when running build checks.
Appears that the command /cd/strelka/strelka cannot be found possibly?

Environment details

  • Operating System: Tested on both Photon OS 4.0 and Debian 11
  • Architecture: x64, guest VMs on Vmware Workstation Pro

Steps to reproduce
Steps to reproduce the behavior:

  1. Run the quickstart process, clone git then running docker compose -f build/docker-compose.yaml up -d
  2. See error pasted below

Expected behavior
Docker compose to build and run

Screenshots

Release

  • Release: 0.23.01.07 - latest

Additional context
Same error as issue #288

** Error paste**

[+] Running 31/31
 ⠿ coordinator Pulled                                                                                                                                                                                            28.9s
 ⠿ ui Pulled                                                                                                                                                                                                     39.4s
   ⠿ bb263680fed1 Pull complete                                                                                                                                                                                   9.0s
   ⠿ 43900b2bbd7f Pull complete                                                                                                                                                                                   9.2s
   ⠿ 0c132e701ca6 Pull complete                                                                                                                                                                                  10.2s
   ⠿ 69deeac200aa Pull complete                                                                                                                                                                                  10.3s
   ⠿ 8d65da2efb8d Pull complete                                                                                                                                                                                  10.9s
   ⠿ 3f44d47df746 Pull complete                                                                                                                                                                                  11.5s
   ⠿ 869a17563fa6 Pull complete                                                                                                                                                                                  33.9s
   ⠿ b98f6e1815ff Pull complete                                                                                                                                                                                  34.0s
   ⠿ 4638b43dd18d Pull complete                                                                                                                                                                                  34.1s
   ⠿ c1b3ada91a7f Pull complete                                                                                                                                                                                  37.1s
   ⠿ 57d3534b93f4 Pull complete                                                                                                                                                                                  37.2s
   ⠿ 5e70cff4c86d Pull complete                                                                                                                                                                                  37.5s
   ⠿ 8b9fbb87bb51 Pull complete                                                                                                                                                                                  37.6s
   ⠿ 18f3d3015ce4 Pull complete                                                                                                                                                                                  37.7s
 ⠿ postgresdb Pulled                                                                                                                                                                                             33.8s
   ⠿ 246c8a6c6470 Pull complete                                                                                                                                                                                  30.6s
 ⠿ gatekeeper Pulled                                                                                                                                                                                             28.9s
   ⠿ 63b65145d645 Pull complete                                                                                                                                                                                  20.1s
   ⠿ 6a83e1b979d3 Pull complete                                                                                                                                                                                  20.5s
   ⠿ 33568fda55fd Pull complete                                                                                                                                                                                  22.2s
   ⠿ 92c907937b14 Pull complete                                                                                                                                                                                  24.1s
   ⠿ ae96d2ab3885 Pull complete                                                                                                                                                                                  24.4s
   ⠿ fbd5435e8d0e Pull complete                                                                                                                                                                                  24.8s
 ⠿ jaeger Pulled                                                                                                                                                                                                 27.6s
   ⠿ ca7dd9ec2225 Pull complete                                                                                                                                                                                  14.6s
   ⠿ ee05771f3f2c Pull complete                                                                                                                                                                                  14.9s
   ⠿ a8bc2250c61c Pull complete                                                                                                                                                                                  19.0s
   ⠿ b4fe08652afa Pull complete                                                                                                                                                                                  23.4s
   ⠿ 213565b7d5b0 Pull complete                                                                                                                                                                                  23.5s
[+] Building 1008.2s (48/50)                                                                                                                                                                                           
 => [build-frontend internal] load build definition from Dockerfile                                                                                                                                               0.0s
 => => transferring dockerfile: 1.20kB                                                                                                                                                                            0.0s
 => [build-frontend internal] load .dockerignore                                                                                                                                                                  0.1s
 => => transferring context: 78B                                                                                                                                                                                  0.0s
 => [build-backend internal] load build definition from Dockerfile                                                                                                                                                0.1s
 => => transferring dockerfile: 6.45kB                                                                                                                                                                            0.0s
 => [build-backend internal] load .dockerignore                                                                                                                                                                   0.1s
 => => transferring context: 78B                                                                                                                                                                                  0.0s
 => [build-manager internal] load metadata for docker.io/library/alpine:latest                                                                                                                                    4.0s
 => [build-frontend internal] load metadata for docker.io/library/golang:1.17.6                                                                                                                                   3.7s
 => [build-manager internal] load build definition from Dockerfile                                                                                                                                                0.1s
 => => transferring dockerfile: 1.03kB                                                                                                                                                                            0.0s
 => [build-manager internal] load .dockerignore                                                                                                                                                                   0.1s
 => => transferring context: 78B                                                                                                                                                                                  0.0s
 => [build-mmrpc internal] load build definition from Dockerfile                                                                                                                                                  0.1s
 => => transferring dockerfile: 1.15kB                                                                                                                                                                            0.0s
 => [build-mmrpc internal] load .dockerignore                                                                                                                                                                     0.1s
 => => transferring context: 78B                                                                                                                                                                                  0.0s
 => [build-backend internal] load metadata for docker.io/library/ubuntu:22.04                                                                                                                                     3.6s
 => [build-mmrpc internal] load build context                                                                                                                                                                     2.3s
 => => transferring context: 40.64MB                                                                                                                                                                              2.2s
 => [build-backend 1/7] FROM docker.io/library/ubuntu:22.04@sha256:9a0bdde4188b896a372804be2384015e90e3f84906b750c1a53539b585fbbe7f                                                                               8.7s
 => => resolve docker.io/library/ubuntu:22.04@sha256:9a0bdde4188b896a372804be2384015e90e3f84906b750c1a53539b585fbbe7f                                                                                             0.0s
 => => sha256:9a0bdde4188b896a372804be2384015e90e3f84906b750c1a53539b585fbbe7f 1.13kB / 1.13kB                                                                                                                    0.0s
 => => sha256:c985bc3f77946b8e92c9a3648c6f31751a7dd972e06604785e47303f4ad47c4c 424B / 424B                                                                                                                        0.0s
 => => sha256:58db3edaf2be6e80f628796355b1bdeaf8bea1692b402f48b7e7b8d1ff100b02 2.30kB / 2.30kB                                                                                                                    0.0s
 => => sha256:677076032cca0a2362d25cf3660072e738d1b96fe860409a33ce901d695d7ee8 29.53MB / 29.53MB                                                                                                                  2.4s
 => => extracting sha256:677076032cca0a2362d25cf3660072e738d1b96fe860409a33ce901d695d7ee8                                                                                                                         5.4s
 => [build-backend internal] load build context                                                                                                                                                                   2.1s
 => => transferring context: 40.68MB                                                                                                                                                                              2.1s
 => [build-manager stage-1 1/2] FROM docker.io/library/alpine@sha256:69665d02cb32192e52e07644d76bc6f25abeb5410edc1c7a81a10ba3f0efb90a                                                                             0.4s
 => => resolve docker.io/library/alpine@sha256:69665d02cb32192e52e07644d76bc6f25abeb5410edc1c7a81a10ba3f0efb90a                                                                                                   0.2s
 => => sha256:69665d02cb32192e52e07644d76bc6f25abeb5410edc1c7a81a10ba3f0efb90a 1.64kB / 1.64kB                                                                                                                    0.0s
 => => sha256:e2e16842c9b54d985bf1ef9242a313f36b856181f188de21313820e177002501 528B / 528B                                                                                                                        0.0s
 => => sha256:b2aa39c304c27b96c1fef0c06bee651ac9241d49c4fe34381cab8453f9a89c7d 1.47kB / 1.47kB                                                                                                                    0.0s
 => [build-manager build 1/4] FROM docker.io/library/golang:1.17.6@sha256:fff998d0f7a46baeb15d8478ee909a8237377e07ccf1a8e77d77a32033021d62                                                                       55.5s
 => => resolve docker.io/library/golang:1.17.6@sha256:fff998d0f7a46baeb15d8478ee909a8237377e07ccf1a8e77d77a32033021d62                                                                                            0.2s
 => => sha256:80d9a75ccb3879eefdece2f6409bd7a7eed708ea4e830e6c4ecfadeff65f68e0 7.07kB / 7.07kB                                                                                                                    0.0s
 => => sha256:0c6b8ff8c37e92eb1ca65ed8917e818927d5bf318b6f18896049b5d9afc28343 54.92MB / 54.92MB                                                                                                                  4.1s
 => => sha256:412caad352a3ecbb29c080379407ae0761e7b9b454f7239cbfd1d1da25e06b29 5.15MB / 5.15MB                                                                                                                    2.6s
 => => sha256:fff998d0f7a46baeb15d8478ee909a8237377e07ccf1a8e77d77a32033021d62 2.35kB / 2.35kB                                                                                                                    0.0s
 => => sha256:ec67c62f48ddfbca1ccaef18f9b3addccd707e1885fa28702a3954340786fcf6 1.80kB / 1.80kB                                                                                                                    0.0s
 => => sha256:e6d3e61f7a504fa66d7275123969e9917570188650eb84b2280a726b996040f6 10.87MB / 10.87MB                                                                                                                  5.2s
 => => sha256:461bb1d8c517c7f9fc0f1df66c9dc34c85a23421c1e1c540b2e28cbb258e75f5 54.57MB / 54.57MB                                                                                                                 10.3s
 => => sha256:9297634c9537024497f76a2e1b374d8a315baa21d45bf36dc7980dc42ab93b0b 85.81MB / 85.81MB                                                                                                                 16.6s
 => => extracting sha256:0c6b8ff8c37e92eb1ca65ed8917e818927d5bf318b6f18896049b5d9afc28343                                                                                                                        10.5s
 => => sha256:6a0b51344be5f9250bead5056dab94779c90f7387bb1bc436f0a0cdbe2254d13 134.83MB / 134.83MB                                                                                                               17.8s
 => => sha256:856234c9f3194ea7c9dde1bed11c61f4dcd53cb2edba539d136b955fe4bace56 155B / 155B                                                                                                                       11.3s
 => => extracting sha256:412caad352a3ecbb29c080379407ae0761e7b9b454f7239cbfd1d1da25e06b29                                                                                                                         0.9s
 => => extracting sha256:e6d3e61f7a504fa66d7275123969e9917570188650eb84b2280a726b996040f6                                                                                                                         1.4s
 => => extracting sha256:461bb1d8c517c7f9fc0f1df66c9dc34c85a23421c1e1c540b2e28cbb258e75f5                                                                                                                        15.1s
 => => extracting sha256:9297634c9537024497f76a2e1b374d8a315baa21d45bf36dc7980dc42ab93b0b                                                                                                                         8.5s
 => => extracting sha256:6a0b51344be5f9250bead5056dab94779c90f7387bb1bc436f0a0cdbe2254d13                                                                                                                        12.3s
 => => extracting sha256:856234c9f3194ea7c9dde1bed11c61f4dcd53cb2edba539d136b955fe4bace56                                                                                                                         0.0s
 => [build-manager internal] load build context                                                                                                                                                                   0.2s
 => => transferring context: 107.55kB                                                                                                                                                                             0.1s
 => [build-frontend internal] load build context                                                                                                                                                                  0.3s
 => => transferring context: 107.55kB                                                                                                                                                                             0.1s
 => [build-mmrpc 2/7] RUN apt-get -qq update &&     apt-get install --no-install-recommends -qq     build-essential     git     python3-dev     python3-pip     python3-setuptools     python3-wheel            194.6s
 => [build-backend  2/17] RUN groupadd --gid 1001 strelka     && useradd --uid 1001 --gid 1001 --create-home --shell /bin/bash strelka                                                                            2.8s
 => [build-backend  3/17] COPY ./build/python/backend/pin.pref /etc/apt/preferences.d/pin.pref                                                                                                                    0.1s
 => [build-backend  4/17] COPY ./build/python/backend/kinetic.list /etc/apt/sources.list.d/kinetic.list                                                                                                           0.1s
 => [build-backend  5/17] RUN apt-get -q update &&     apt-get install -q -y --no-install-recommends     automake     build-essential     cmake     curl     gcc     git     gpg     libglu1-mesa     libtool   133.3s
 => [build-manager build 2/4] COPY ./src/go/ /go/src/github.com/target/strelka/src/go/                                                                                                                            0.5s
 => CACHED [build-frontend build 2/4] COPY ./src/go/ /go/src/github.com/target/strelka/src/go/                                                                                                                    0.0s
 => [build-frontend build 3/4] WORKDIR /go/src/github.com/target/strelka/src/go/cmd/strelka-frontend                                                                                                              0.1s
 => [build-manager build 3/4] WORKDIR /go/src/github.com/target/strelka/src/go/cmd/strelka-manager                                                                                                                0.1s
 => [build-frontend build 4/4] RUN go mod download &&     CGO_ENABLED=0 go build -o /tmp/strelka-frontend .                                                                                                     132.5s
 => [build-manager build 4/4] RUN go mod download &&     CGO_ENABLED=0 go build -o /tmp/strelka-manager .                                                                                                       131.9s
 => [build-backend  6/17] RUN echo 'deb http://download.opensuse.org/repositories/security:/zeek/xUbuntu_22.04/ /' | tee /etc/apt/sources.list.d/security:zeek.list &&     curl -fsSL https://download.opensuse.  2.9s
 => [build-backend  7/17] RUN apt-get -q update &&     apt-get install -q -y --no-install-recommends     7zip     antiword     binwalk     libarchive-dev     libcompress-raw-lzma-perl     libfuzzy-dev     l  292.6s
 => [build-manager stage-1 2/2] COPY --from=build /tmp/strelka-manager /usr/local/bin/strelka-manager                                                                                                             0.2s
 => [build-mmrpc] exporting to image                                                                                                                                                                             14.0s
 => => exporting layers                                                                                                                                                                                          13.5s
 => => writing image sha256:8067c02a0018d33d3670f49543f5f54260ccf3f7b42d17f6cbfede0168740fe3                                                                                                                      0.0s
 => => naming to docker.io/library/build-manager                                                                                                                                                                  0.0s
 => => writing image sha256:9c9e8c70d4c7f6c06e2acbe67737fc55e1ea614876e7941978c7222aa7838e98                                                                                                                      0.0s
 => => naming to docker.io/library/build-frontend                                                                                                                                                                 0.0s
 => => writing image sha256:97980401d1c0cb429815f18335e51f683a6c067c2e310ad08fbb1ad595cc6837                                                                                                                      0.0s
 => => naming to docker.io/library/build-mmrpc                                                                                                                                                                    0.0s
 => [build-frontend stage-1 2/3] COPY --from=build /tmp/strelka-frontend /usr/local/bin/strelka-frontend                                                                                                          0.1s
 => [build-frontend stage-1 3/3] RUN mkdir /var/log/strelka/ &&     chgrp -R 0 /var/log/strelka/ &&     chmod -R g=u /var/log/strelka/                                                                            0.6s
 => [build-mmrpc 3/7] COPY ./build/python/mmrpc/requirements.txt /strelka/requirements.txt                                                                                                                        0.1s
 => [build-mmrpc 4/7] RUN pip3 install --no-cache-dir -r /strelka/requirements.txt                                                                                                                               67.0s
 => [build-mmrpc 5/7] COPY ./src/python/ /strelka/                                                                                                                                                                0.4s
 => [build-mmrpc 6/7] COPY ./build/python/mmrpc/setup.py /strelka/setup.py                                                                                                                                        0.0s
 => [build-mmrpc 7/7] RUN cd /strelka/ &&     python3 setup.py -q build &&     python3 setup.py -q install &&     python3 setup.py -q clean --all &&     rm -rf dist/ strelka.egg-info &&     pip3 uninstall -y  13.1s
 => [build-backend  8/17] RUN apt-mark manual zeek-lts                                                                                                                                                            3.8s
 => [build-backend  9/17] RUN apt-get -q update   && apt-get install -q -y --no-install-recommends     ca-certificates     libssl-dev     zlib1g-dev     yasm     libgmp-dev     libpcap-dev     libbz2-dev      12.6s
 => [build-backend 10/17] RUN mkdir jtr && cd jtr && git init && git remote add origin https://github.com/openwall/john.git && git fetch --depth 1 origin b5c10480f56ff1b5d76c6cbdaf9c817582ee2228 && git rese  207.8s
 => [build-backend 11/17] COPY ./src/python/ /strelka/                                                                                                                                                            0.3s
 => [build-backend 12/17] COPY ./configs/python/backend/ /etc/strelka/                                                                                                                                            0.0s
 => [build-backend 13/17] RUN pip3 install --no-cache-dir -r /strelka/requirements.txt &&     pip3 install --index-url https://lief-project.github.io/packages --trusted-host lief.quarkslab.com lief           161.7s
 => [build-backend 14/17] RUN cd /strelka/ &&     python3 setup.py -q build &&     python3 setup.py -q install &&     python3 setup.py -q clean --all &&     rm -rf dist/ strelka.egg-info &&     pip3 uninstal  11.4s
 => ERROR [build-backend 15/17] RUN echo '[+] Run build checks' &&     cd /strelka/strelka/ &&     python3 -m pytest -p no:cacheprovider -s tests/ &&     if false; then python3 -m pytest -s tests_configurat  166.2s
------
 > [build-backend 15/17] RUN echo '[+] Run build checks' &&     cd /strelka/strelka/ &&     python3 -m pytest -p no:cacheprovider -s tests/ &&     if false; then python3 -m pytest -s tests_configuration/; fi &&     echo '[+] Done':
#0 0.633 [+] Run build checks
#0 7.623 /usr/local/lib/python3.10/dist-packages/M2Crypto/SSL/ssl_dispatcher.py:8: DeprecationWarning: The asyncore module is deprecated and will be removed in Python 3.12. The recommended replacement is asyncio
#0 7.623   import asyncore
#0 7.625 
#0 8.039 ============================= test session starts ==============================
#0 8.039 platform linux -- Python 3.10.6, pytest-7.2.0, pluggy-1.0.0
#0 8.039 rootdir: /strelka
#0 8.039 plugins: mock-3.10.0, unordered-0.5.2
#0 8.039 collected 122 items
#0 8.039 
#0 8.039 tests/test_required_for_scanner.py .
#0 8.051 tests/test_scan_base64.py .
#0 8.056 tests/test_scan_base64_pe.py .
#0 8.061 tests/test_scan_batch.py .
#0 8.207 tests/test_scan_bmp_eof.py .
#0 8.212 tests/test_scan_bzip2.py .
#0 8.215 tests/test_scan_capa.py ..F
#0 45.04 tests/test_scan_ccn.py .
#0 45.05 tests/test_scan_delay.py .
#0 46.06 tests/test_scan_dmg.py ...
#0 46.21 tests/test_scan_docx.py .
#0 46.98 tests/test_scan_elf.py .
#0 47.06 tests/test_scan_email.py .
#0 47.29 tests/test_scan_encrypted_doc.py ....
#0 53.86 tests/test_scan_encrypted_zip.py ..
#0 54.96 tests/test_scan_entropy.py .
#0 54.96 tests/test_scan_exception.py .
#0 54.97 tests/test_scan_exiftool.py ..
#0 55.78 tests/test_scan_footer.py ..
#0 55.78 tests/test_scan_gif.py .
#0 55.79 tests/test_scan_gzip.py .
#0 55.79 tests/test_scan_hash.py .
#0 55.80 tests/test_scan_header.py ..
#0 55.81 tests/test_scan_html.py ..
#0 55.83 tests/test_scan_ini.py .
#0 55.83 tests/test_scan_iso.py .
#0 55.84 tests/test_scan_javascript.py ..
#0 55.99 tests/test_scan_jpeg.py ..
#0 56.10 tests/test_scan_json.py .
#0 56.10 tests/test_scan_libarchive.py ......
#0 56.14 tests/test_scan_lnk.py .
#0 56.15 tests/test_scan_lzma.py .
#0 56.15 tests/test_scan_macho.py .
#0 56.17 tests/test_scan_manifest.py .
#0 56.18 tests/test_scan_msi.py .
#0 56.63 tests/test_scan_nf.py ....
#0 56.82 tests/test_scan_ocr.py ...
#0 99.36 tests/test_scan_ole.py ....
#0 99.38 tests/test_scan_onenote.py ..
#0 99.39 tests/test_scan_pcap.py ..
#0 101.2 tests/test_scan_pdf.py .
#0 101.4 tests/test_scan_pe.py .
#0 101.4 tests/test_scan_pgp.py ....
#0 101.4 tests/test_scan_plist.py .
#0 101.4 tests/test_scan_png_eof.py ...
#0 101.4 tests/test_scan_qr.py ...
#0 101.7 tests/test_scan_rar.py .
#0 101.7 tests/test_scan_seven_zip.py .....
#0 162.5 tests/test_scan_strings.py .
#0 162.6 tests/test_scan_tar.py .
#0 162.6 tests/test_scan_tlsh.py .
#0 162.7 tests/test_scan_transcode.py ...................
#0 164.8 tests/test_scan_upx.py .
#0 164.9 tests/test_scan_url.py ..
#0 164.9 tests/test_scan_vhd.py ..
#0 165.0 tests/test_scan_x509.py ..
#0 165.0 tests/test_scan_xl4ma.py .
#0 165.1 tests/test_scan_xml.py .
#0 165.2 tests/test_scan_yara.py .
#0 165.2 tests/test_scan_zip.py ..
#0 165.2 
#0 165.2 =================================== FAILURES ===================================
#0 165.2 ____________________________ test_scan_capa_pe_xor _____________________________
#0 165.2 
#0 165.2 mocker = <pytest_mock.plugin.MockerFixture object at 0x7fd122c72890>
#0 165.2 
#0 165.2     def test_scan_capa_pe_xor(mocker):
#0 165.2         """
#0 165.2         Pass: Sample event matches output of scanner.
#0 165.2         Failure: Unable to load file or sample event fails to match.
#0 165.2         """
#0 165.2     
#0 165.2         test_scan_event = {
#0 165.2             "elapsed": mock.ANY,
#0 165.2             "flags": [],
#0 165.2             "matches": unordered(
#0 165.2                 [
#0 165.2                     "encode data using XOR",
#0 165.2                     "contains PDB path",
#0 165.2                     "contain a resource (.rsrc) section",
#0 165.2                     "parse PE header",
#0 165.2                     "contain loop",
#0 165.2                 ]
#0 165.2             ),
#0 165.2             "mitre_ids": unordered(["T1129", "T1027"]),
#0 165.2             "mitre_techniques": unordered(
#0 165.2                 [
#0 165.2                     "Execution::Shared Modules",
#0 165.2                     "Defense Evasion::Obfuscated Files or Information",
#0 165.2                 ]
#0 165.2             ),
#0 165.2         }
#0 165.2     
#0 165.2         scanner_event = run_test_scan(
#0 165.2             mocker=mocker,
#0 165.2             scan_class=ScanUnderTest,
#0 165.2             fixture_path=Path(__file__).parent / "fixtures/test_xor.exe",
#0 165.2             options={"scanner_timeout": 20},
#0 165.2         )
#0 165.2     
#0 165.2         TestCase.maxDiff = None
#0 165.2 >       TestCase().assertDictEqual(test_scan_event, scanner_event)
#0 165.2 
#0 165.2 tests/test_scan_capa.py:94: 
#0 165.2 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
#0 165.2 /usr/lib/python3.10/unittest/case.py:1144: in assertDictEqual
#0 165.2     self.fail(self._formatMessage(msg, standardMsg))
#0 165.2 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
#0 165.2 
#0 165.2 self = <unittest.case.TestCase testMethod=runTest>
#0 165.2 msg = "{'elapsed': <ANY>, 'flags': [], 'matches': ['encode d[241 chars]on']} != {'elapsed': 20.000962, 'flags': ['timed_out'...chniques': ['Execution::Shared Modules',\n-                       'Defense Evasion::Obfuscated Files or Information']}"
#0 165.2 
#0 165.2     def fail(self, msg=None):
#0 165.2         """Fail immediately, with the given message."""
#0 165.2 >       raise self.failureException(msg)
#0 165.2 E       AssertionError: {'elapsed': <ANY>, 'flags': [], 'matches': ['encode d[241 chars]on']} != {'elapsed': 20.000962, 'flags': ['timed_out']}
#0 165.2 E       + {'elapsed': 20.000962, 'flags': ['timed_out']}
#0 165.2 E       - {'elapsed': <ANY>,
#0 165.2 E       -  'flags': [],
#0 165.2 E       -  'matches': ['encode data using XOR',
#0 165.2 E       -              'contains PDB path',
#0 165.2 E       -              'contain a resource (.rsrc) section',
#0 165.2 E       -              'parse PE header',
#0 165.2 E       -              'contain loop'],
#0 165.2 E       -  'mitre_ids': ['T1129', 'T1027'],
#0 165.2 E       -  'mitre_techniques': ['Execution::Shared Modules',
#0 165.2 E       -                       'Defense Evasion::Obfuscated Files or Information']}
#0 165.2 
#0 165.2 /usr/lib/python3.10/unittest/case.py:675: AssertionError
#0 165.2 =============================== warnings summary ===============================
#0 165.2 ../../usr/local/lib/python3.10/dist-packages/redis/connection.py:2
#0 165.2   /usr/local/lib/python3.10/dist-packages/redis/connection.py:2: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
#0 165.2     from distutils.version import StrictVersion
#0 165.2 
#0 165.2 strelka/tests/test_required_for_scanner.py::test_required_for_scanner
#0 165.2   /strelka/strelka/tests/test_required_for_scanner.py:22: UserWarning: Missing scanner test scan_antiword.py
#0 165.2     warnings.warn(f"Missing scanner test {scanner_filename}")
#0 165.2 
#0 165.2 strelka/tests/test_required_for_scanner.py::test_required_for_scanner
#0 165.2   /strelka/strelka/tests/test_required_for_scanner.py:22: UserWarning: Missing scanner test scan_cuckoo.py
#0 165.2     warnings.warn(f"Missing scanner test {scanner_filename}")
#0 165.2 
#0 165.2 strelka/tests/test_required_for_scanner.py::test_required_for_scanner
#0 165.2   /strelka/strelka/tests/test_required_for_scanner.py:22: UserWarning: Missing scanner test scan_falcon_sandbox.py
#0 165.2     warnings.warn(f"Missing scanner test {scanner_filename}")
#0 165.2 
#0 165.2 strelka/tests/test_required_for_scanner.py::test_required_for_scanner
#0 165.2   /strelka/strelka/tests/test_required_for_scanner.py:22: UserWarning: Missing scanner test scan_floss.py
#0 165.2     warnings.warn(f"Missing scanner test {scanner_filename}")
#0 165.2 
#0 165.2 strelka/tests/test_required_for_scanner.py::test_required_for_scanner
#0 165.2   /strelka/strelka/tests/test_required_for_scanner.py:22: UserWarning: Missing scanner test scan_jar_manifest.py
#0 165.2     warnings.warn(f"Missing scanner test {scanner_filename}")
#0 165.2 
#0 165.2 strelka/tests/test_required_for_scanner.py::test_required_for_scanner
#0 165.2   /strelka/strelka/tests/test_required_for_scanner.py:22: UserWarning: Missing scanner test scan_lsb.py
#0 165.2     warnings.warn(f"Missing scanner test {scanner_filename}")
#0 165.2 
#0 165.2 strelka/tests/test_required_for_scanner.py::test_required_for_scanner
#0 165.2   /strelka/strelka/tests/test_required_for_scanner.py:22: UserWarning: Missing scanner test scan_mmbot.py
#0 165.2     warnings.warn(f"Missing scanner test {scanner_filename}")
#0 165.2 
#0 165.2 strelka/tests/test_required_for_scanner.py::test_required_for_scanner
#0 165.2   /strelka/strelka/tests/test_required_for_scanner.py:22: UserWarning: Missing scanner test scan_php.py
#0 165.2     warnings.warn(f"Missing scanner test {scanner_filename}")
#0 165.2 
#0 165.2 strelka/tests/test_required_for_scanner.py::test_required_for_scanner
#0 165.2   /strelka/strelka/tests/test_required_for_scanner.py:22: UserWarning: Missing scanner test scan_pkcs7.py
#0 165.2     warnings.warn(f"Missing scanner test {scanner_filename}")
#0 165.2 
#0 165.2 strelka/tests/test_required_for_scanner.py::test_required_for_scanner
#0 165.2   /strelka/strelka/tests/test_required_for_scanner.py:22: UserWarning: Missing scanner test scan_rpm.py
#0 165.2     warnings.warn(f"Missing scanner test {scanner_filename}")
#0 165.2 
#0 165.2 strelka/tests/test_required_for_scanner.py::test_required_for_scanner
#0 165.2   /strelka/strelka/tests/test_required_for_scanner.py:22: UserWarning: Missing scanner test scan_rtf.py
#0 165.2     warnings.warn(f"Missing scanner test {scanner_filename}")
#0 165.2 
#0 165.2 strelka/tests/test_required_for_scanner.py::test_required_for_scanner
#0 165.2   /strelka/strelka/tests/test_required_for_scanner.py:22: UserWarning: Missing scanner test scan_swf.py
#0 165.2     warnings.warn(f"Missing scanner test {scanner_filename}")
#0 165.2 
#0 165.2 strelka/tests/test_required_for_scanner.py::test_required_for_scanner
#0 165.2   /strelka/strelka/tests/test_required_for_scanner.py:22: UserWarning: Missing scanner test scan_tnef.py
#0 165.2     warnings.warn(f"Missing scanner test {scanner_filename}")
#0 165.2 
#0 165.2 strelka/tests/test_required_for_scanner.py::test_required_for_scanner
#0 165.2   /strelka/strelka/tests/test_required_for_scanner.py:22: UserWarning: Missing scanner test scan_vb.py
#0 165.2     warnings.warn(f"Missing scanner test {scanner_filename}")
#0 165.2 
#0 165.2 strelka/tests/test_required_for_scanner.py::test_required_for_scanner
#0 165.2   /strelka/strelka/tests/test_required_for_scanner.py:22: UserWarning: Missing scanner test scan_vba.py
#0 165.2     warnings.warn(f"Missing scanner test {scanner_filename}")
#0 165.2 
#0 165.2 strelka/tests/test_required_for_scanner.py::test_required_for_scanner
#0 165.2   /strelka/strelka/tests/test_required_for_scanner.py:22: UserWarning: Missing scanner test scan_zlib.py
#0 165.2     warnings.warn(f"Missing scanner test {scanner_filename}")
#0 165.2 
#0 165.2 strelka/tests/test_scan_email.py::test_scan_email
#0 165.2 strelka/tests/test_scan_email.py::test_scan_email
#0 165.2   /usr/local/lib/python3.10/dist-packages/magic/__init__.py:422: PendingDeprecationWarning: Using compatability mode with libmagic's python binding. See https://github.com/ahupp/python-magic/blob/master/COMPAT.md for details.
#0 165.2     warnings.warn(
#0 165.2 
#0 165.2 strelka/tests/test_scan_hash.py::test_scan_hash
#0 165.2   /usr/local/lib/python3.10/dist-packages/cffi/vengine_cpy.py:4: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
#0 165.2     import sys, imp
#0 165.2 
#0 165.2 -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
#0 165.2 =========================== short test summary info ============================
#0 165.2 FAILED tests/test_scan_capa.py::test_scan_capa_pe_xor - AssertionError: {'ela...
#0 165.2 ============ 1 failed, 121 passed, 20 warnings in 163.91s (0:02:43) ============
------
failed to solve: process "/bin/sh -c echo '[+] Run build checks' &&     cd /strelka/strelka/ &&     python3 -m pytest -p no:cacheprovider -s tests/ &&     if $CONFIG_TESTS; then python3 -m pytest -s tests_configuration/; fi &&     echo '[+] Done'" did not complete successfully: exit code: 1
@tconnz tconnz added the bug Something isn't working label Feb 22, 2023
@phutelmyer
Copy link
Contributor

Thanks for reporting, @tconnz - I'll take a look at it this week.

@phutelmyer
Copy link
Contributor

@tconnz - Do you mind trying the latest commit?
#340

@tconnz
Copy link
Author

tconnz commented Feb 28, 2023

@phutelmyer - Many thanks for ths very speedy turnaround - that commit has resolved the issue for me on Debain 11.
Thanks again!

@phutelmyer
Copy link
Contributor

Great, thanks for confirming @tconnz! I'll put out a new release shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants