github.com / apache
apache/ airflow
Python·15645 files·commit e52bd98·scanned 4d ago·cached ✓
15/100
LOW RISK
Minor findings consistent with the project type. Nothing reachable from install hooks.
score capped at 15 — apache is a verified organization — findings likely false positives
scored by engine v10: rules have changed since, rescan for the current result
verdict accurate?
Verified organization
16% file coverage
Partial architecture graph
threat-state: lowlive
FINDINGS ░▒▓
warningPython subprocess / os.system usageos.system() or subprocess with shell=True / suspicious commands can execute arbitrary shell commands. Plain pip/package installs are usually benign.airflow-core/src/airflow/example_dags/example_kubernetes_executor.py
return_code = os.system("cat /foo/volume_mount_test.txt")
if return_code != 0:
raise ValueError(f"Error when checking volume mount. Return code {return_code}")+4criticalPython dynamic code executioneval(), exec() or compile() on untrusted input can execute arbitrary code. Common in Python malware for running obfuscated payloads.airflow-core/src/airflow/policies.py
)
code = compile(codestr, "<policy-shim>", "single")
scope = {"__target": target}
exec(code, scope, scope)+7criticalPython dynamic code executioneval(), exec() or compile() on untrusted input can execute arbitrary code. Common in Python malware for running obfuscated payloads.airflow-core/src/airflow/utils/process_utils.py
If current process was spawned by system call ``exec()``, the current
process group is kept.
"""+7criticalPython dynamic code executioneval(), exec() or compile() on untrusted input can execute arbitrary code. Common in Python malware for running obfuscated payloads.airflow-core/tests/unit/utils/test_email.py
with pytest.warns(DeprecatedImportWarning):
exec("from airflow.utils.email import *", namespace)
assert {name: namespace.get(name) for name in DEPRECATED_NAMES} == {+7warningExtremely long lines (>1000 chars)Very long lines in source files (not minified bundles) can hide malicious code.airflow-core/src/airflow/ui/openapi-gen/queries/ensureQueryData.ts+4
warningExtremely long lines (>1000 chars)Very long lines in source files (not minified bundles) can hide malicious code.airflow-core/src/airflow/ui/openapi-gen/queries/prefetch.ts+4
warningExtremely long lines (>1000 chars)Very long lines in source files (not minified bundles) can hide malicious code.airflow-core/src/airflow/ui/openapi-gen/queries/suspense.ts+4
warningFlattened or dead control flowDetected switch(true), dead if branches, or deeply nested ternaries — patterns used by obfuscators to hide execution order.airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/rules/core.js+3
warningFlattened or dead control flowDetected switch(true), dead if branches, or deeply nested ternaries — patterns used by obfuscators to hide execution order.airflow-core/src/airflow/dag_processing/manager.py+3
warningFlattened or dead control flowDetected switch(true), dead if branches, or deeply nested ternaries — patterns used by obfuscators to hide execution order.airflow-core/src/airflow/ui/rules/core.js+3
warningHigh-entropy string literalsFound 4 long strings with high Shannon entropy. This is common in obfuscated payloads that hide URLs, keys, or bytecode.airflow-core/src/airflow/ui/src/mocks/handlers/dags.ts+3
warningHigh-entropy string literalsFound 10 long strings with high Shannon entropy. This is common in obfuscated payloads that hide URLs, keys, or bytecode.airflow-core/src/airflow/ui/src/mocks/handlers/log.ts+3
warningHigh-entropy string literalsFound 8 long strings with high Shannon entropy. This is common in obfuscated payloads that hide URLs, keys, or bytecode.performance/src/performance_dags/performance_dag/performance_dag_utils.py+3
infoSuspicious file in repoVery large source file (756KB) — could contain obfuscated payloadairflow-core/tests/unit/jobs/test_scheduler_job.py+2
infoSuspicious file in repoVery large source file (695KB) — could contain obfuscated payloadchart/values.schema.json+2
infoSuspicious file in repoVery large source file (584KB) — could contain obfuscated payloadgenerated/provider_metadata.json+2
warningHardcoded secret/credentialAPI keys, passwords, or tokens hardcoded in source code. Should be in environment variables.airflow-core/src/airflow/ui/src/pages/Events/Events.tsx
const ownerArg = useAdvancedSearchArg({
patternApiKey: "ownerDisplayNamePattern",
prefixApiKey: "ownerDisplayNamePrefixPattern",
storageKey: USER_PARAM,+3warningHardcoded secret/credentialAPI keys, passwords, or tokens hardcoded in source code. Should be in environment variables.airflow-core/src/airflow/ui/src/pages/XCom/XCom.tsx
const dagDisplayNameArg = useAdvancedSearchArg({
patternApiKey: "dagDisplayNamePattern",
prefixApiKey: "dagDisplayNamePrefixPattern",
storageKey: DAG_DISPLAY_NAME_PATTERN_PARAM,+3warningHardcoded secret/credentialAPI keys, passwords, or tokens hardcoded in source code. Should be in environment variables.airflow-core/src/airflow/ui/src/queries/useGridStructure.ts
patternApiKey: "triggeringUser",
prefixApiKey: "triggeringUserPrefix",
storageKey: SearchParamsKeys.TRIGGERING_USER_NAME_PATTERN,
value: triggeringUser,+3Scores reflect the files and rules covered by this scan. How to read this report
2569 files scanned @ e52bd98 | 11/20/2026 | heuristic scan — always review manually
risk by category
code execution25
network & exfiltration0
file system access0
obfuscation15
supply chain10
owasp / injection9
telemetry
files 2569/15645rules hit 21engine v10commit e52bd98
github
apache/airflow
Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
47571
18421
4244d
15645 files
2569 scanned(16%)
e52bd98
network indicators░▒▓
Hosts this code names or would connect to. Top 50 of 407, decoded and call-site destinations first. Informational, not scored.
- https://airflow.mycompany.comurlairflow-core/src/airflow/api_fastapi/core_api/app.py:289
- https://fastapi.tiangolo.com/how-to/extending-openapi/urlairflow-core/src/airflow/api_fastapi/execution_api/app.py:200
- https://docs.cadwyn.dev/concepts/version_changes/urlairflow-core/src/airflow/api_fastapi/execution_api/services/task_instances.py:39 +1 more
- https://www.iterm2.com/documentation-images.htmlurlairflow-core/src/airflow/cli/cli_config.py:1397 +2 more
- https://www.graphviz.org/doc/info/output.htmlurlairflow-core/src/airflow/cli/cli_config.py:1403 +2 more
- https://httpbingo.org/geturlairflow-core/src/airflow/example_dags/example_dag_decorator.py:54 +1 more
- https://air-quality-api.open-meteo.com/v1/air-qualityurlairflow-core/src/airflow/example_dags/tutorial_objectstorage.py:32
- https://brandur.org/fragments/secure-bytes-without-pgcryptourlairflow-core/src/airflow/migrations/versions/0042_3_0_0_add_uuid_primary_key_to_task_instance_.py:88
- https://regex101.com/r/69033B/1urlairflow-core/src/airflow/models/connection.py:77 +1 more
- https://www.starlette.io/routing/urlairflow-core/src/airflow/partition_mappers/temporal.py:69
- https://airflow.apache.com/schemas/serialized-dags.jsonurlairflow-core/src/airflow/serialization/schema.json:3
- https://dev.mysql.com/doc/refman/8.0/en/innodb-transaction-isolation-levels.htmlurlairflow-core/src/airflow/settings.py:690
- https://github.com/kiorky/croniter/issues/56urlairflow-core/src/airflow/timetables/_cron.py:79
- https://www.youtube.com/watchurlairflow-core/src/airflow/ui/src/components/SmoothOperator/youtube.ts:22
- https://policies.google.com/privacyurlairflow-core/src/airflow/ui/src/components/SmoothOperator/youtube.ts:25
- https://www.youtube.com/t/termsurlairflow-core/src/airflow/ui/src/components/SmoothOperator/youtube.ts:26
- https://www.youtube-nocookie.com/embed/$urlairflow-core/src/airflow/ui/src/components/SmoothOperator/youtube.ts:33
- https://github.com/teamclairvoyant/airflow-maintenance-dags/blob/…/db-cleanup/airflow-db-cleanup.pyurlairflow-core/src/airflow/utils/db_cleanup.py:21
- https://www.httpbin.orgurlairflow-core/src/airflow/utils/db.py:400
- https://api.iceberg.io/ws/v1urlairflow-core/src/airflow/utils/db.py:405
- https://tableau.server.urlurlairflow-core/src/airflow/utils/db.py:592
- https://alembic.sqlalchemy.org/en/latest/api/runtime.htmlurlairflow-core/src/airflow/utils/db.py:1740
- http://apache-airflow-docs.s3-website.eu-central-1.amazonaws.com/docs/apache-airflow/stable/urlairflow-core/src/airflow/utils/docs.py:26
- https://github.com/kubernetes-client/python/blob/…/kubernetes/client/api_client.pyurlairflow-core/src/airflow/utils/sqlalchemy.py:397
- https://github.com/kubernetes-client/python/issues/977urlairflow-core/src/airflow/utils/sqlalchemy.py:441
- https://jira.mariadb.org/browse/MDEV-13115urlairflow-core/src/airflow/utils/sqlalchemy.py:597
- https://airbyte.comurlproviders/airbyte/src/airflow/providers/airbyte/get_provider_info.py:28 +1 more
- https://www.akeyless.iourlproviders/akeyless/src/airflow/providers/akeyless/get_provider_info.py:28
- https://docs.akeyless.iourlproviders/akeyless/src/airflow/providers/akeyless/get_provider_info.py:32 +1 more
- https://github.com/akeylesslabs/akeyless-pythonurlproviders/akeyless/src/airflow/providers/akeyless/hooks/akeyless.py:39
- https://api.akeyless.iourlproviders/akeyless/src/airflow/providers/akeyless/hooks/akeyless.py:65 +3 more
- https://www.alibabacloud.com/help/en/analyticdb-for-mysql/latest/api-doc-adb-2021-12-01-api-structurlproviders/alibaba/src/airflow/providers/alibaba/cloud/hooks/analyticdb_spark.py:45
- https://pyodps.readthedocs.io/en/latest/base-sql.htmlurlproviders/alibaba/src/airflow/providers/alibaba/cloud/hooks/maxcompute.py:163 +2 more
- https://www.alibabacloud.com/help/en/maxcompute/user-guide/job-priorityurlproviders/alibaba/src/airflow/providers/alibaba/cloud/hooks/maxcompute.py:172 +1 more
- https://www.alibabacloud.com/help/en/maxcompute/user-guide/flag-parametersurlproviders/alibaba/src/airflow/providers/alibaba/cloud/hooks/maxcompute.py:177 +1 more
- https://pyodps.readthedocs.io/en/latest/base-instances.htmlurlproviders/alibaba/src/airflow/providers/alibaba/cloud/hooks/maxcompute.py:211
- https://www.alibabacloud.comurlproviders/alibaba/src/airflow/providers/alibaba/get_provider_info.py:28
- https://www.alibabacloud.com/help/product/31815.htmurlproviders/alibaba/src/airflow/providers/alibaba/get_provider_info.py:32
- https://www.alibabacloud.com/help/en/analyticdb-for-mysql/latest/spark-developermenturlproviders/alibaba/src/airflow/providers/alibaba/get_provider_info.py:39
- https://www.alibabacloud.com/help/en/dataworks/developer-reference/maxcomputeurlproviders/alibaba/src/airflow/providers/alibaba/get_provider_info.py:45
- https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch/client/submit_job.htmlurlproviders/amazon/src/airflow/providers/amazon/aws/executors/batch/batch_executor_config.py:26
- https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.htmlurlproviders/amazon/src/airflow/providers/amazon/aws/executors/batch/batch_executor.py:96 +4 more
- https://docs.aws.amazon.com/batch/latest/…/….htmlurlproviders/amazon/src/airflow/providers/amazon/aws/executors/batch/batch_executor.py:99 +2 more
- https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ecs.htmlurlproviders/amazon/src/airflow/providers/amazon/aws/executors/ecs/ecs_executor_config.py:26
- https://docs.aws.amazon.com/AmazonECS/latest/…/….htmlurlproviders/amazon/src/airflow/providers/amazon/aws/executors/ecs/ecs_executor.py:113
- https://docs.aws.amazon.com/appflow/1.0/…/….htmlurlproviders/amazon/src/airflow/providers/amazon/aws/hooks/appflow.py:39
- https://github.com/boto/botocore/issues/3078urlproviders/amazon/src/airflow/providers/amazon/aws/hooks/base_aws.py:100
- https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/session.htmlurlproviders/amazon/src/airflow/providers/amazon/aws/hooks/base_aws.py:492 +1 more
- https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.htmlurlproviders/amazon/src/airflow/providers/amazon/aws/hooks/base_aws.py:501 +1 more
- https://docs.aws.amazon.com/STS/latest/…/….htmlurlproviders/amazon/src/airflow/providers/amazon/aws/hooks/base_aws.py:958
architecture░▒▓
entry (2) flagged (16) pkg (564)
964 nodes · 3109 edgesscroll to zoom · click node to jump to finding