PyPI / moto / 5.2.6

moto 5.2.6

Source
https://github.com/getmoto/moto
Artifact scanned
moto-5.2.6-py3-none-any.whl (wheel · 7.4 MB · SHA-256 1f0b99bceaea…)
Compared with
moto-5.2.5-py3-none-any.whl (0 signals introduced since)
Files
1467 scanned, 444 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 12 info
Scan time
11.1 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 12 of 12 warn and critical signals; 12 demoted to info.
Disclude version
4.3.0
Scanned (UTC)
2026-11-23 10:57

Signals

Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.

  1. info warn → info by review encoding-base64 moto/acm/models.py:31:1

    base64-like blob (1468 bytes over 23 lines, compression ratio 0.72) (raw pass, confidence 0.60)

    AWS_ROOT_CA = b"""-----BEGIN CERTIFICATE-----
    MIIESTCCAzGgAwIBAgITBntQXCplJ7wevi2i0ZmY7bibLDANBgkqhkiG9w0BAQsF
    ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6
    b24gUm9vdCBDQSAxMB4XDTE1MTAyMTIyMjQzNFoXDTQwMTAyMTIyMjQzNFowRjEL
    likely benign LLM, confidence 0.97 Embedded AWS root CA certificate in PEM form.
    Reasoning

    The blob is a PEM-encoded AWS root CA certificate in a bytes literal, which is ordinary test/mock data for a certificate manager emulator.

  2. info critical → info by review dynamic-import moto/core/base_backend.py:57:31

    `__import__` called on a non-literal expression (ast pass, confidence 0.70)

            backend_urls_module_name = backend_module.rstrip("models") + "urls"
            backend_urls_module = __import__(
                backend_urls_module_name, fromlist=["url_bases", "url_paths"]
            )
    likely benign LLM, confidence 0.80 Dynamic import of a service's urls module derived from its models module name.
    Reasoning

    The __import__ target is derived from the module name by string manipulation, which is a common plugin-loading idiom in moto to load each service's urls module. The module name comes from the package's own service list, not external input, so it is a legitimate dynamic import, though the non-literal call is worth noting.

  3. info warn → info by review encoding-base64 moto/core/serialize.py:1197:10

    base64-like blob (76 bytes, compression ratio 1.14) (raw pass, confidence 0.60)

        DEFAULT_HOST_ID = (
            "9Gjjt1m+cjU4OPvX9O9/8RuvnG41MRb/18Oux2o5H5MY7ISNTlXN+Dz9IG62/ILVxhAGI0qyPfg="
        )
        DEFAULT_TIMESTAMP_FORMAT = TimestampSerializer.TIMESTAMP_FORMAT_ISO8601_ZEROED
    likely benign LLM, confidence 0.95 Default mock x-amz-id-2 host ID constant.
    Reasoning

    This is a fixed placeholder host ID string used as a default for mocked responses, a plain constant with no decoding or execution.

  4. info warn → info by review encoding-base64 moto/glue/models.py:86:9

    base64-like blob (379 bytes over 2 lines, compression ratio 0.84) (raw pass, confidence 0.60)

            AAAAB3NzaC1yc2EAAAADAQABAAABAQDV5+voluw2zmzqpqCAqtsyoP01TQ8Ydx1eS1yD6wUsHcPqMIqpo57YxiC8XPwrdeKQ6GG6MC3bHsgXoPypGP0LyixbiuLTU31DnnqorcHt4bWs6rQa7dK2pCCflz2fhYRt5ZjqSNsAKivIbqkH66JozN0SySIka3kEV79GdB0BicioKeEJlCwM9vvxafyzjWf/z8E0lh4ni3vkLpIVJ0t5l+Qd9QMJrT6Is0SCQPVagTYZoi8+fWDoGsBa8vyRwDjEzBl28ZplKh9tSyDkRIYszWTp
    likely benign LLM, confidence 0.95 Sample SSH RSA public key string in mock data.
    Reasoning

    The blob is an SSH public key literal used as sample data for a Glue connection/mock resource.

  5. info warn → info by review decoder-decompress-payload moto/s3/models.py:3202:27

    file imports decoder module(s) base64, bz2, codecs, gzip and calls `.decompress()` — embedded payload decompressed at runtime (ast pass, confidence 0.75)

            elif input_details.get("CompressionType") == "BZIP2":
                query_input = bz2.decompress(key.value).decode("utf-8")
            else:
                query_input = key.value.decode("utf-8")
    likely benign LLM, confidence 0.85 Decompresses S3 object data for S3 Select queries based on the declared compression type.
    Reasoning

    bz2/gzip decompression here handles user-uploaded S3 object contents for S3 Select input (CompressionType BZIP2/GZIP), which is legitimate functionality of an S3 emulator and operates on stored data, not a hidden payload.

  6. info warn → info by review encoding-base64 moto/ses/models.py:1167:39

    base64-like blob (44 bytes, compression ratio 1.25) (raw pass, confidence 0.60)

                    "VerificationStatus": "Success",
                    "VerificationToken": "ILQMESfEW0p6i6gIJcEWvO65TP5hg6B99hGFZ2lxrIs=",
                }
            return attributes_by_identity
    likely benign LLM, confidence 0.95 Static mock SES verification token string.
    Reasoning

    The value is a fixed-looking verification token placeholder in a mocked SES response dictionary.

  7. info warn → info by review encoding-base64 moto/ses/responses.py:59:41

    base64-like blob (44 bytes, compression ratio 1.25) (raw pass, confidence 0.60)

            self.backend.verify_domain(domain)
            result = {"VerificationToken": "QTKknzFg2J4ygwa+XvHAxUl1hyHoY0gVfZdfjIedHZ0="}
            return ActionResult(result)
    likely benign LLM, confidence 0.95 Static mock SES verification token in response.
    Reasoning

    A hardcoded mock verification token returned in a mocked SES response; no decoding or execution.

  8. info critical → info by review dynamic-execution moto/settings.py:175:26

    `os.popen` called on a non-literal command — runtime-determined shell invocation (ast pass, confidence 0.85)

            cmd = "curl -s --unix-socket /run/docker.sock http://docker/containers/$HOSTNAME/json"
            container_info = os.popen(cmd).read()
            network_settings = json.loads(container_info)["NetworkSettings"]
            network_name = moto_network_name()
    likely benign LLM, confidence 0.85 Runs a curl query against the Docker unix socket to read container network settings.
    Reasoning

    The command is a fixed string literal with only a $HOSTNAME shell variable, used to query the Docker socket for container network info when running inside Docker. Using os.popen is poor practice and the shell expansion is an injection-style smell, but the command is hardcoded and the purpose is legitimate container detection.

  9. info warn → info by review encoding-base64 moto/sts/responses.py:31:34

    base64-like blob (239 bytes, compression ratio 0.90) (raw pass, confidence 0.60)

                    "SessionToken": "AQoEXAMPLEH4aoAH0gNCAPyJxz4BlCFFxWNE1OPTgk5TthT+FvwqnKwRcOIfrRh3c/LTo6UDdyJwOOvEVPvLXCrrrUtdnniCEXAMPLE/IvU1dYUg2RVAJBanLiHb4IgRmpRV3zrkuWJOgQs8IZZaIv2BXIa2R4OlgkBN9bkUDNCJiBeb/AXlzBBko7b15fjrBs2+cTQtpZ3CYWFXG8C5zqx37wnOE49mRl/+OtkIKGO7fAE",
    likely benign LLM, confidence 0.95 Example AWS session token in mocked STS response.
    Reasoning

    This is an AWS documentation-style example session token (containing EXAMPLE) used as mock response data.

  10. info warn → info by review encoding-base64 moto/sts/responses.py:53:34

    base64-like blob (336 bytes, compression ratio 0.85) (raw pass, confidence 0.60)

                    "SessionToken": "AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Y
    likely benign LLM, confidence 0.95 Example AWS session token in mocked STS response.
    Reasoning

    Another AWS-style example session token embedded in mocked STS response output, containing EXAMPLE markers.

  11. info warn → info by review encoding-base64 moto/sts/responses.py:139:31

    base64-like blob (49 bytes, compression ratio 1.22) (raw pass, confidence 0.60)

                "Audience": "https://signin.aws.amazon.com/saml",
                "NameQualifier": "B64EncodedStringOfHashOfIssuerAccountIdAndUserId=",
            }
            return ActionResult(result)
    likely benign LLM, confidence 0.95 Placeholder SAML NameQualifier in mock response.
    Reasoning

    A placeholder NameQualifier string in a mocked SAML STS response.

  12. info warn → info by review decoder-decompress-payload moto/utilities/utils.py:54:29

    file imports decoder module(s) gzip and calls `.decompress()` — embedded payload decompressed at runtime (ast pass, confidence 0.75)

                compressed_resource = f"{resource}.gz"
            data: str | bytes = gzip.decompress(load_resource_as_bytes(compressed_resource))
        except FileNotFoundError:
            data = load_resource_as_str(resource)
    likely benign LLM, confidence 0.85 Loads a gzipped bundled resource file with a plaintext fallback.
    Reasoning

    gzip.decompress reads a bundled resource file shipped with the package (resource.gz), with a plaintext fallback. This is ordinary packaged-data loading, not a hidden payload.

Reproduce This Scan

Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.

cargo install disclude --version 4.3.0
curl -fsSL -o moto-5.2.6-py3-none-any.whl https://files.pythonhosted.org/packages/31/09/fe35cd5d4c2bc1307e9d8bdcdcac746e802214ea3521cc1ae6b391208a26/moto-5.2.6-py3-none-any.whl
printf '%s  %s\n' 1f0b99bceaead4543b743a961df0353d6fbc584fab658f9f84ef17df6ae6f24a moto-5.2.6-py3-none-any.whl | shasum -a 256 -c -
unzip -q moto-5.2.6-py3-none-any.whl -d pkg
disclude scan --untrusted --severity info pkg