AI Slop Code Risk Monitor

OpenCTI-Platform/opencti

SlopCodeMonitor badge for OpenCTI-Platform/opencti Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Open Cyber Threat Intelligence Platform

3.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for OpenCTI-Platform/opencti, a TypeScript project with 10,231 GitHub stars. SynthScan examined 1,118,179 lines of code across 5906 source files, recording 1437 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 3.2 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

3.2
Adjusted Signal
3.2
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
10.2K
Stars
TypeScript
Language
1.1M
Lines of Code
5.9K
Files
1.4K
Pattern Hits
2026-10-31
Scan Date
0.06
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 5.0/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 657 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.4/100 · LOW

Are imports declared and package/API names verified? 218 finding(s).

Agent Over-Engineering Ratio 10.5/100 · LOW

Are wrappers, guards, and repeated structures necessary? 888 finding(s).

PR Review Velocity Impact 15.9/100 · LOW

Which changes need focused human review? 1437 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 10HIGH 353MEDIUM 287LOW 787

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1437 distinct pattern matches across 24 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Cross-File Repetition285 hits · 1425 pts
SeverityFileLineSnippetContext
HIGHclient-python/pycti/api/opencti_api_workspace.py0opencti playbook api class. manages playbook operations. :param api: instance of :py:class:`~pycti.api.opencti_api_clienSTRING
HIGHclient-python/pycti/api/opencti_api_notification.py0opencti playbook api class. manages playbook operations. :param api: instance of :py:class:`~pycti.api.opencti_api_clienSTRING
HIGHclient-python/pycti/api/opencti_api_draft.py0opencti playbook api class. manages playbook operations. :param api: instance of :py:class:`~pycti.api.opencti_api_clienSTRING
HIGHclient-python/pycti/api/opencti_api_playbook.py0opencti playbook api class. manages playbook operations. :param api: instance of :py:class:`~pycti.api.opencti_api_clienSTRING
HIGHclient-python/pycti/entities/opencti_campaign.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGHclient-python/pycti/entities/opencti_location.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGHclient-python/pycti/entities/opencti_language.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGH…thon/pycti/entities/opencti_threat_actor_individual.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGHclient-python/pycti/entities/opencti_threat_actor.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGHclient-python/pycti/entities/opencti_identity.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGHclient-python/pycti/entities/opencti_intrusion_set.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGHclient-python/pycti/entities/opencti_infrastructure.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGHclient-python/pycti/entities/opencti_data_source.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGH…nt-python/pycti/entities/opencti_threat_actor_group.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGHclient-python/pycti/entities/opencti_event.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGHclient-python/pycti/entities/opencti_narrative.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGHclient-python/pycti/entities/opencti_tool.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGHclient-python/pycti/entities/opencti_channel.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGHclient-python/pycti/entities/opencti_data_component.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGHclient-python/pycti/entities/opencti_malware.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGH…ient-python/pycti/entities/opencti_course_of_action.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGHclient-python/pycti/entities/opencti_incident.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGHclient-python/pycti/entities/opencti_attack_pattern.py0customfieldvalues { field_id field_name int_value string_value boolean_value date_value select_value select_values } id STRING
HIGHclient-python/pycti/entities/opencti_campaign.py0generate a stix id from feedback data. :param data: dictionary containing a 'name' key :type data: dict :return: stix idSTRING
HIGHclient-python/pycti/entities/opencti_language.py0generate a stix id from feedback data. :param data: dictionary containing a 'name' key :type data: dict :return: stix idSTRING
HIGHclient-python/pycti/entities/opencti_vulnerability.py0generate a stix id from feedback data. :param data: dictionary containing a 'name' key :type data: dict :return: stix idSTRING
HIGHclient-python/pycti/entities/opencti_intrusion_set.py0generate a stix id from feedback data. :param data: dictionary containing a 'name' key :type data: dict :return: stix idSTRING
HIGHclient-python/pycti/entities/opencti_infrastructure.py0generate a stix id from feedback data. :param data: dictionary containing a 'name' key :type data: dict :return: stix idSTRING
HIGHclient-python/pycti/entities/opencti_data_source.py0generate a stix id from feedback data. :param data: dictionary containing a 'name' key :type data: dict :return: stix idSTRING
HIGHclient-python/pycti/entities/opencti_event.py0generate a stix id from feedback data. :param data: dictionary containing a 'name' key :type data: dict :return: stix idSTRING
HIGHclient-python/pycti/entities/opencti_narrative.py0generate a stix id from feedback data. :param data: dictionary containing a 'name' key :type data: dict :return: stix idSTRING
HIGHclient-python/pycti/entities/opencti_tool.py0generate a stix id from feedback data. :param data: dictionary containing a 'name' key :type data: dict :return: stix idSTRING
HIGHclient-python/pycti/entities/opencti_channel.py0generate a stix id from feedback data. :param data: dictionary containing a 'name' key :type data: dict :return: stix idSTRING
HIGHclient-python/pycti/entities/opencti_data_component.py0generate a stix id from feedback data. :param data: dictionary containing a 'name' key :type data: dict :return: stix idSTRING
HIGHclient-python/pycti/entities/opencti_malware.py0generate a stix id from feedback data. :param data: dictionary containing a 'name' key :type data: dict :return: stix idSTRING
HIGHclient-python/pycti/entities/opencti_feedback.py0generate a stix id from feedback data. :param data: dictionary containing a 'name' key :type data: dict :return: stix idSTRING
HIGHclient-python/pycti/entities/opencti_campaign.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_location.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_opinion.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGH…nt-python/pycti/entities/opencti_external_reference.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_label.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGH…ient-python/pycti/entities/opencti_kill_chain_phase.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_threat_actor.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_vulnerability.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_identity.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGH…nt-python/pycti/entities/opencti_marking_definition.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_intrusion_set.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_data_source.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_event.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_case_rft.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_note.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_tool.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_channel.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_audit.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_data_component.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_malware.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGH…ient-python/pycti/entities/opencti_course_of_action.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_report.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_case_rfi.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
HIGHclient-python/pycti/entities/opencti_grouping.py0list marking-definition objects. :param filters: the filters to apply :type filters: dict :param first: return the firstSTRING
225 more matches not shown…
Decorative Section Separators204 hits · 650 pts
SeverityFileLineSnippetContext
MEDIUM…ts/03-integration/01-database/indicator-domain-test.ts738// ─── Unit helpers (no DB required) ──────────────────────────────────────────COMMENT
MEDIUM…ts/03-integration/01-database/indicator-domain-test.ts769// ─── computeIndicatorDecayHistory ───────────────────────────────────────────COMMENT
MEDIUM…ts/03-integration/01-database/indicator-domain-test.ts812// ─── computeLiveScore ────────────────────────────────────────────────────────COMMENT
MEDIUM…ts/03-integration/01-database/indicator-domain-test.ts849// ─── computeLivePoints ───────────────────────────────────────────────────────COMMENT
MEDIUM…ts/03-integration/01-database/indicator-domain-test.ts897// ─── computeIndicatorDecayPatch ──────────────────────────────────────────────COMMENT
MEDIUM…ncti-graphql/tests/21-integration/ip-whitelist-test.ts9// ─── GraphQL Queries ─────────────────────────────────────────────────────────COMMENT
MEDIUM…ncti-graphql/tests/21-integration/ip-whitelist-test.ts29// ─── Helpers ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ncti-graphql/tests/21-integration/ip-whitelist-test.ts53// ─── Tests ───────────────────────────────────────────────────────────────────COMMENT
MEDIUM…nit/database/middleware-restricted-entity-unit-test.ts3// ── Infrastructure stubs ─────────────────────────────────────────────────────COMMENT
MEDIUM⚡…nit/database/middleware-restricted-entity-unit-test.ts37// ── Imports (after mocks) ────────────────────────────────────────────────────COMMENT
MEDIUM⚡…nit/database/middleware-restricted-entity-unit-test.ts41// ── Reproduction of GitHub issue #18026 ──────────────────────────────────────COMMENT
MEDIUM⚡…nit/database/middleware-restricted-entity-unit-test.ts41// ── Reproduction of GitHub issue #18026 ──────────────────────────────────────COMMENT
MEDIUM…/01-unit/database/middleware-distribution-unit-test.ts3// ── Infrastructure stubs ─────────────────────────────────────────────────────COMMENT
MEDIUM…/01-unit/database/middleware-distribution-unit-test.ts34// ── Imports (after mocks) ────────────────────────────────────────────────────COMMENT
MEDIUM…/01-unit/database/middleware-distribution-unit-test.ts40// ── Shared fixtures ──────────────────────────────────────────────────────────COMMENT
MEDIUM…/01-unit/database/middleware-distribution-unit-test.ts55// ── convertAggregateDistributions: lines 778-780 and 792 ────────────────────COMMENT
MEDIUM…/01-unit/database/middleware-distribution-unit-test.ts143// ── distributionEntities name branch: lines 902-906 ──────────────────────────COMMENT
MEDIUM…/01-unit/database/middleware-distribution-unit-test.ts173// ── distributionHistory name branch: lines 838-859 ───────────────────────────COMMENT
MEDIUM…/opencti-graphql/tests/01-unit/database/engine-test.js220 // ── Status code branch ─────────────────────────────────────────────────────COMMENT
MEDIUM…/opencti-graphql/tests/01-unit/database/engine-test.js270 // ── Error code branch ───────────────────────────────────────────────────────COMMENT
MEDIUM…/opencti-graphql/tests/01-unit/database/engine-test.js308 // ── Text pattern branch – message field ────────────────────────────────────COMMENT
MEDIUM…/opencti-graphql/tests/01-unit/database/engine-test.js330 // ── Text pattern branch – nested paths via collectErrorFieldValues ──────────COMMENT
MEDIUM…/opencti-graphql/tests/01-unit/database/engine-test.js380 // ── Real-world production error shape (from the reported bug) ──────────────COMMENT
MEDIUM…/opencti-graphql/tests/01-unit/database/engine-test.js392 // ── Circuit breaker durability ──────────────────────────────────────────────COMMENT
MEDIUM…/opencti-graphql/tests/01-unit/database/engine-test.js419 // ── False cases ─────────────────────────────────────────────────────────────COMMENT
MEDIUM…sts/01-unit/database/middleware-load-refs-unit-test.ts3// ── Infrastructure stubs ─────────────────────────────────────────────────────COMMENT
MEDIUM…sts/01-unit/database/middleware-load-refs-unit-test.ts40// ── Imports (after mocks) ────────────────────────────────────────────────────COMMENT
MEDIUM…/01-unit/manager/notification-recipient-active-test.ts12// ─── Cache mock: getNotifications reads triggers/users/settings from cache ─────COMMENT
MEDIUM…aphql/tests/01-unit/http/ipWhitelistMiddleware-test.ts46// ─── ipMatchesWhitelist ─────────────────────────────────────────────────────COMMENT
MEDIUM…aphql/tests/01-unit/http/ipWhitelistMiddleware-test.ts145// ─── isUserExcluded ─────────────────────────────────────────────────────────COMMENT
MEDIUM…aphql/tests/01-unit/http/ipWhitelistMiddleware-test.ts271// ─── isLoginOnlyRequest ─────────────────────────────────────────────────────COMMENT
MEDIUM…aphql/tests/01-unit/http/ipWhitelistMiddleware-test.ts394// ─── ipWhitelistMiddleware ──────────────────────────────────────────────────COMMENT
MEDIUM…aphql/tests/01-unit/http/ipWhitelistMiddleware-test.ts583// ─── checkIpWhitelistForRequest ─────────────────────────────────────────────COMMENT
MEDIUM…ti-graphql/tests/01-unit/http/httpChatbotProxy-test.ts5// ── Mocks ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ti-graphql/tests/01-unit/http/httpChatbotProxy-test.ts159// ── Imports (after mocks) ──────────────────────────────────────────────────COMMENT
MEDIUM…ti-graphql/tests/01-unit/http/httpChatbotProxy-test.ts186// ── Helpers ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ti-graphql/tests/01-unit/http/httpChatbotProxy-test.ts231// ── Tests ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM…-graphql/tests/01-unit/modules/workflow-engine-test.ts141 // ── Two-phase async execution ────────────────────────────────────────────COMMENT
MEDIUM…phql/tests/01-unit/modules/workflow-validation-test.ts975 // ── asyncActions / syncActions / requiresOrganizationInput ────────────────COMMENT
MEDIUM…it/modules/playbook/components/ai-agent-shared-test.ts3// ── Mocks (must be declared before the SUT import below) ────────────────COMMENT
MEDIUM…it/modules/playbook/components/ai-agent-shared-test.ts54// ── Imports (after mocks) ───────────────────────────────────────────────COMMENT
MEDIUM…it/modules/playbook/components/ai-agent-shared-test.ts81// ── Fixtures ────────────────────────────────────────────────────────────COMMENT
MEDIUM…modules/playbook/components/ai-agent-component-test.ts3// ── Mocks (declared before the SUT import) ──────────────────────────────COMMENT
MEDIUM…modules/playbook/components/ai-agent-component-test.ts19// ── Imports (after mocks) ───────────────────────────────────────────────COMMENT
MEDIUM…modules/playbook/components/ai-agent-component-test.ts34// ── Fixtures ────────────────────────────────────────────────────────────COMMENT
MEDIUM…modules/playbook/components/ai-agent-component-test.ts76// ── Tests ───────────────────────────────────────────────────────────────COMMENT
MEDIUM…es/playbook/components/ai-agent-send-component-test.ts3// ── Mocks (declared before the SUT import) ──────────────────────────────COMMENT
MEDIUM…es/playbook/components/ai-agent-send-component-test.ts19// ── Imports (after mocks) ───────────────────────────────────────────────COMMENT
MEDIUM…es/playbook/components/ai-agent-send-component-test.ts34// ── Fixtures ────────────────────────────────────────────────────────────COMMENT
MEDIUM…es/playbook/components/ai-agent-send-component-test.ts63// ── Tests ───────────────────────────────────────────────────────────────COMMENT
MEDIUM…ts/01-unit/modules/forms/form-fields-converter-test.ts33// ─── convertFieldType ─────────────────────────────────────────────────────────COMMENT
MEDIUM…ts/01-unit/modules/forms/form-fields-converter-test.ts112// ─── transformSpecialFields ───────────────────────────────────────────────────COMMENT
MEDIUM…ests/01-unit/modules/forms/form-bundle-builder-test.ts93// ─── Imports after mocks ──────────────────────────────────────────────────COMMENT
MEDIUM…ests/01-unit/modules/forms/form-bundle-builder-test.ts114// ─── buildMainStixEntities ────────────────────────────────────────────────────COMMENT
MEDIUM…ests/01-unit/modules/forms/form-bundle-builder-test.ts540// ─── buildAdditionalEntities ──────────────────────────────────────────────────COMMENT
MEDIUM…ests/01-unit/modules/forms/form-bundle-builder-test.ts910// ─── buildRelationships ───────────────────────────────────────────────────────COMMENT
MEDIUM…ests/01-unit/modules/forms/form-bundle-builder-test.ts1107// ─── wrapInContainerOrPush ────────────────────────────────────────────────────COMMENT
MEDIUM…ql/tests/01-unit/modules/forms/form-validation-test.ts5// ─── Helpers ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ql/tests/01-unit/modules/forms/form-validation-test.ts34// ─── Single entity mode ──────────────────────────────────────────────────────COMMENT
MEDIUM…ql/tests/01-unit/modules/forms/form-validation-test.ts79// ─── Lookup mode ─────────────────────────────────────────────────────────────COMMENT
144 more matches not shown…
Synthetic Comment Markers57 hits · 352 pts
SeverityFileLineSnippetContext
HIGHopencti-platform/opencti-front/lang/front/zh.json4794 "Simulated emails (generated by AI)": "模拟电子邮件(由人工智能生成)",CODE
HIGHopencti-platform/opencti-front/lang/front/zh.json5296 "This forecast is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been gCODE
HIGH⚡opencti-platform/opencti-front/lang/front/zh.json5347 "This summary is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been geCODE
HIGH⚡opencti-platform/opencti-front/lang/front/zh.json5348 "This summary is based on the history of this entity (internal activity). It has been generated by AI and can contain CODE
HIGH⚡opencti-platform/opencti-front/lang/front/zh.json5349 "This summary is based on the whole content of related containers (description, content and attached files). It has beCODE
HIGHopencti-platform/opencti-front/lang/front/ja.json4794 "Simulated emails (generated by AI)": "模擬メール(AIが生成)",CODE
HIGHopencti-platform/opencti-front/lang/front/ja.json5296 "This forecast is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been gCODE
HIGH⚡opencti-platform/opencti-front/lang/front/ja.json5347 "This summary is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been geCODE
HIGH⚡opencti-platform/opencti-front/lang/front/ja.json5348 "This summary is based on the history of this entity (internal activity). It has been generated by AI and can contain CODE
HIGH⚡opencti-platform/opencti-front/lang/front/ja.json5349 "This summary is based on the whole content of related containers (description, content and attached files). It has beCODE
HIGHopencti-platform/opencti-front/lang/front/de.json4794 "Simulated emails (generated by AI)": "Simulierte E-Mails (von AI generiert)",CODE
HIGHopencti-platform/opencti-front/lang/front/de.json5296 "This forecast is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been gCODE
HIGH⚡opencti-platform/opencti-front/lang/front/de.json5347 "This summary is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been geCODE
HIGH⚡opencti-platform/opencti-front/lang/front/de.json5348 "This summary is based on the history of this entity (internal activity). It has been generated by AI and can contain CODE
HIGH⚡opencti-platform/opencti-front/lang/front/de.json5349 "This summary is based on the whole content of related containers (description, content and attached files). It has beCODE
HIGHopencti-platform/opencti-front/lang/front/ru.json4794 "Simulated emails (generated by AI)": "Имитированные электронные письма (сгенерированные искусственным интеллектом)",CODE
HIGHopencti-platform/opencti-front/lang/front/ru.json5296 "This forecast is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been gCODE
HIGH⚡opencti-platform/opencti-front/lang/front/ru.json5347 "This summary is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been geCODE
HIGH⚡opencti-platform/opencti-front/lang/front/ru.json5348 "This summary is based on the history of this entity (internal activity). It has been generated by AI and can contain CODE
HIGH⚡opencti-platform/opencti-front/lang/front/ru.json5349 "This summary is based on the whole content of related containers (description, content and attached files). It has beCODE
HIGHopencti-platform/opencti-front/lang/front/en.json4794 "Simulated emails (generated by AI)": "Simulated emails (generated by AI)",CODE
HIGHopencti-platform/opencti-front/lang/front/en.json5296 "This forecast is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been gCODE
HIGH⚡opencti-platform/opencti-front/lang/front/en.json5347 "This summary is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been geCODE
HIGH⚡opencti-platform/opencti-front/lang/front/en.json5348 "This summary is based on the history of this entity (internal activity). It has been generated by AI and can contain CODE
HIGH⚡opencti-platform/opencti-front/lang/front/en.json5349 "This summary is based on the whole content of related containers (description, content and attached files). It has beCODE
HIGHopencti-platform/opencti-front/lang/front/it.json4794 "Simulated emails (generated by AI)": "Simulazione di email (generate da AI)",CODE
HIGHopencti-platform/opencti-front/lang/front/it.json5296 "This forecast is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been gCODE
HIGH⚡opencti-platform/opencti-front/lang/front/it.json5347 "This summary is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been geCODE
HIGH⚡opencti-platform/opencti-front/lang/front/it.json5348 "This summary is based on the history of this entity (internal activity). It has been generated by AI and can contain CODE
HIGH⚡opencti-platform/opencti-front/lang/front/it.json5349 "This summary is based on the whole content of related containers (description, content and attached files). It has beCODE
HIGHopencti-platform/opencti-front/lang/front/fr.json4794 "Simulated emails (generated by AI)": "Courriels simulés (générés par l'IA)",CODE
HIGHopencti-platform/opencti-front/lang/front/fr.json5296 "This forecast is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been gCODE
HIGH⚡opencti-platform/opencti-front/lang/front/fr.json5347 "This summary is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been geCODE
HIGH⚡opencti-platform/opencti-front/lang/front/fr.json5348 "This summary is based on the history of this entity (internal activity). It has been generated by AI and can contain CODE
HIGH⚡opencti-platform/opencti-front/lang/front/fr.json5349 "This summary is based on the whole content of related containers (description, content and attached files). It has beCODE
HIGHopencti-platform/opencti-front/lang/front/ko.json4794 "Simulated emails (generated by AI)": "시뮬레이션 이메일(AI로 생성)",CODE
HIGHopencti-platform/opencti-front/lang/front/ko.json5296 "This forecast is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been gCODE
HIGH⚡opencti-platform/opencti-front/lang/front/ko.json5347 "This summary is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been geCODE
HIGH⚡opencti-platform/opencti-front/lang/front/ko.json5348 "This summary is based on the history of this entity (internal activity). It has been generated by AI and can contain CODE
HIGH⚡opencti-platform/opencti-front/lang/front/ko.json5349 "This summary is based on the whole content of related containers (description, content and attached files). It has beCODE
HIGHopencti-platform/opencti-front/lang/front/es.json4794 "Simulated emails (generated by AI)": "Correos electrónicos simulados (generados por IA)",CODE
HIGHopencti-platform/opencti-front/lang/front/es.json5296 "This forecast is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been gCODE
HIGH⚡opencti-platform/opencti-front/lang/front/es.json5347 "This summary is based on the evolution of the activity of this entity (indicators, victimology, etc.). It has been geCODE
HIGH⚡opencti-platform/opencti-front/lang/front/es.json5348 "This summary is based on the history of this entity (internal activity). It has been generated by AI and can contain CODE
HIGH⚡opencti-platform/opencti-front/lang/front/es.json5349 "This summary is based on the whole content of related containers (description, content and attached files). It has beCODE
HIGH…src/private/components/common/ai/AISummaryActivity.tsx68 <i>{t_i18n('This summary is based on the evolution of the activity of this entity (indicators, victimology, etCODE
HIGH…src/private/components/common/ai/AISummaryActivity.tsx81 <i>{t_i18n('This summary is based on the evolution of the activity of this entity (indicators, victimology, CODE
HIGH…src/private/components/common/ai/AISummaryActivity.tsx92 <i>{t_i18n('This summary is based on the evolution of the activity of this entity (indicators, victimology, CODE
HIGH…src/private/components/common/ai/AISummaryActivity.tsx103 <i>{t_i18n('This summary is based on the evolution of the activity of this entity (indicators, victimology, CODE
HIGH…src/private/components/common/ai/AISummaryActivity.tsx114 <i>{t_i18n('This summary is based on the evolution of the activity of this entity (indicators, victimology, CODE
HIGH…src/private/components/common/ai/AISummaryActivity.tsx263 disclaimerText={t_i18n('This summary is based on the evolution of the activity of this entity (indicators, victimoCODE
HIGH…/src/private/components/common/ai/AISummaryHistory.tsx59 {t_i18n('This summary is based on the history of this entity (internal activity). It has been generated by AI anCODE
HIGH…/src/private/components/common/ai/AISummaryHistory.tsx198 disclaimerText={t_i18n('This summary is based on the history of this entity (internal activity). It has been generCODE
HIGH…src/private/components/common/ai/AISummaryForecast.tsx59 {t_i18n('This forecast is based on the evolution of the activity of this entity (indicators, victimology, etc.).CODE
HIGH…src/private/components/common/ai/AISummaryForecast.tsx202 disclaimerText={t_i18n('This forecast is based on the evolution of the activity of this entity (indicators, victimCODE
HIGH…c/private/components/common/ai/AISummaryContainers.tsx108 {t_i18n('This summary is based on the whole content of related containers (description, content and attached filCODE
HIGH…c/private/components/common/ai/AISummaryContainers.tsx243 disclaimerText={t_i18n('This summary is based on the whole content of related containers (description, content andCODE
Hyper-Verbose Identifiers323 hits · 316 pts
SeverityFileLineSnippetContext
LOW…atform/opencti-graphql/src/manager/publisherManager.ts105export function resolveNotificationDataMarkings(CODE
LOW…atform/opencti-graphql/src/manager/publisherManager.ts221export async function handleSimplifiedEmailNotification(CODE
LOW…atform/opencti-graphql/src/manager/publisherManager.ts266export async function handleWebhookNotification(configurationString: string | undefined, templateData: object) {CODE
LOW⚡opencti-platform/opencti-front/src/utils/Time.ts262export function dateFiltersValueForDisplay(CODE
LOW⚡opencti-platform/opencti-front/src/utils/Time.ts266export function dateFiltersValueForDisplay(CODE
LOW⚡opencti-platform/opencti-front/src/utils/Time.ts270export function dateFiltersValueForDisplay(CODE
LOW⚡…tform/opencti-front/src/utils/filters/filtersUtils.tsx730export function normalizeFilterGroupForBackend(filterGroup: FilterGroup): GqlFilterGroup;CODE
LOW⚡…tform/opencti-front/src/utils/filters/filtersUtils.tsx731export function normalizeFilterGroupForBackend(filterGroup?: FilterGroup | null): GqlFilterGroup | undefined;CODE
LOW⚡…tform/opencti-front/src/utils/filters/filtersUtils.tsx732export function normalizeFilterGroupForBackend(CODE
LOW…rm/opencti-front/src/components/ExportButtons.test.tsx46function createExportButtonsInstance(props: Record<string, unknown>) {CODE
LOW…rc/private/components/data/forms/view/FormViewUtils.ts334 function validateConditionalRequired(this: Yup.TestContext, value: Record<string, unknown> | undefined) {CODE
LOW…ata/playbooks/playbookFlow/playbookComponents-utils.ts33export function groupAndSortPlaybookComponents(CODE
LOW…ti-worker/tests/test_push_handler_worker_side_split.py50 def test_warns_with_connector_work_and_bundle_context_when_splitting_in_worker(CODE
LOW…ti-worker/tests/test_push_handler_worker_side_split.py81 def test_does_not_warn_when_bundle_is_pre_split(self):CODE
LOWopencti-worker/tests/test_push_handler_resilience.py39 def test_telemetry_failure_does_not_mask_ack_result(self):CODE
LOWopencti-worker/tests/test_push_handler_resilience.py54 def test_telemetry_failure_does_not_mask_nack_result(self):CODE
LOWopencti-worker/tests/test_push_handler_resilience.py69 def test_telemetry_success_path_unaffected(self):CODE
LOW…worker/tests/test_message_queue_consumer_resilience.py23 def test_unhandled_exception_still_acks_the_message(self):CODE
LOW…worker/tests/test_message_queue_consumer_resilience.py40 def test_unhandled_exception_is_logged_with_body_excerpt(self):CODE
LOW…worker/tests/test_message_queue_consumer_resilience.py55 def test_normal_ack_result_still_acks(self):CODE
LOW…worker/tests/test_message_queue_consumer_resilience.py66 def test_normal_nack_result_still_nacks(self):CODE
LOWopencti-worker/src/worker.py243 def listen_execution_pool_submit(task: Callable[[], None]):CODE
LOWopencti-worker/src/push_handler.py42 def send_bundle_to_specific_queue(CODE
LOWclient-python/tests/conftest.py70def pytest_collection_modifyitems(config, items):CODE
LOWclient-python/tests/cases/connectors.py35 def case_vulnerability_import() -> Dict:CODE
LOWclient-python/tests/cases/entities.py28 def case_identity_organization(api_client):CODE
LOW⚡client-python/tests/cases/entities.py120 def case_stix_cyber_observable_domain(api_client):CODE
LOW⚡client-python/tests/cases/entities.py124 def case_stix_cyber_observable_as(api_client):CODE
LOW⚡client-python/tests/cases/entities.py128 def case_stix_sighting_relationship(api_client):CODE
LOW⚡client-python/tests/cases/entities.py136 def case_threat_actor_individual(api_client):CODE
LOWclient-python/tests/cases/entities.py217 def get_compare_exception_keys(self) -> List[str]:CODE
LOWclient-python/tests/cases/entities.py317 def get_compare_exception_keys(self) -> List[str]:CODE
LOWclient-python/tests/cases/entities.py509 def get_compare_exception_keys(self) -> List[str]:CODE
LOWclient-python/tests/cases/entities.py651 def get_compare_exception_keys(self) -> List[str]:CODE
LOWclient-python/tests/cases/entities.py790 def get_compare_exception_keys(self) -> List[str]:CODE
LOWclient-python/tests/cases/entities.py848 def get_compare_exception_keys(self) -> List[str]:CODE
LOWclient-python/tests/cases/entities.py915 def get_compare_exception_keys(self) -> List[str]:CODE
LOWclient-python/tests/cases/entities.py952 def get_compare_exception_keys(self) -> List[str]:CODE
LOW…ython/tests/02-integration/connector/test_connector.py32def test_register_simple_connector(simple_connector, api_connector, api_work):CODE
LOW…ython/tests/02-integration/connector/test_connector.py79def test_ping_sends_connector_info_errors(simple_connector, api_client, api_connector):CODE
LOW…ython/tests/02-integration/connector/test_connector.py98def test_ping_replaces_errors_and_clears_them_with_an_empty_list(CODE
LOW…ython/tests/02-integration/connector/test_connector.py119def external_import_connector_data(request, api_client, api_connector, api_work):CODE
LOW…ython/tests/02-integration/connector/test_connector.py133def test_external_import_connector(CODE
LOW…ython/tests/02-integration/connector/test_connector.py174def internal_enrichment_connector_data(request, api_client, api_connector, api_work):CODE
LOW…ython/tests/02-integration/connector/test_connector.py199def test_internal_enrichment_connector(CODE
LOW…ython/tests/02-integration/connector/test_connector.py227def internal_import_connector_data(request, api_client, api_connector, api_work):CODE
LOW…ython/tests/02-integration/connector/test_connector.py248def test_internal_import_connector(CODE
LOW…ient-python/tests/02-integration/entities/test_user.py58def test_user_admin_token_create_remove(api_client):CODE
LOW…ent-python/tests/02-integration/entities/test_group.py24def test_group_default_markings(api_client):CODE
LOW…ent-python/tests/02-integration/entities/test_group.py72def test_group_allowed_markings(api_client):CODE
LOW…t-python/tests/02-integration/entities/test_malware.py4def test_malware_import_with_sample_refs(api_client):CODE
LOW…hon/tests/02-integration/entities/test_upload_files.py4def test_create_entity_with_embedded_file(api_client):CODE
LOW…thon/tests/02-integration/entities/test_observables.py6def test_windows_registry_key_values_creation(api_client):CODE
LOW…thon/tests/02-integration/entities/test_observables.py55def test_promote_observable_to_indicator_deprecated(api_client):CODE
LOW…thon/tests/02-integration/entities/test_observables.py67def test_certificate_creation_mapping(api_client):CODE
LOW…ython/tests/02-integration/entities/test_indicators.py36def test_indicator_stix_marshall(api_client):CODE
LOW…nt-python/tests/01-unit/test_no_libmagic_dependency.py21def test_module_does_not_import_magic(module_name):CODE
LOW…1-unit/connector_helper/test_api_listen_concurrency.py141 def test_health_check_responds_while_callback_is_processing(self):CODE
LOW…1-unit/connector_helper/test_api_listen_concurrency.py172 def test_concurrent_callbacks_are_serialized(self):CODE
LOW…1-unit/connector_helper/test_api_listen_concurrency.py206 def test_stop_shuts_down_executor_without_pika_connection(self):CODE
263 more matches not shown…
Self-Referential Comments60 hits · 194 pts
SeverityFileLineSnippetContext
MEDIUMopencti-platform/opencti-dev/docker-compose.yml94 OPENSEARCH_HOSTS: '["http://opencti-dev-opensearch:9200"]' # Define the OpenSearch nodes that OpenSearch DashboardCODE
MEDIUMopencti-worker/src/push_handler.py171 # Create a specific channel to push the split bundlesCOMMENT
MEDIUM.github/labels.yml4# This file is the machine-readable companion to .github/LABELS.md and the sourceCOMMENT
MEDIUMclient-python/tests/cases/entities.py288 # Create the organizationCOMMENT
MEDIUM…ient-python/tests/02-integration/entities/test_user.py64 # Create the tokenCOMMENT
MEDIUM⚡…hon/tests/01-unit/api/test_opencti_api_client-proxy.py49 # Create a temporary file with certificate contentCOMMENT
MEDIUM…hon/tests/01-unit/api/test_opencti_api_client-proxy.py70 # Create a temporary file with invalid contentCOMMENT
MEDIUM…hon/tests/01-unit/api/test_opencti_api_client-proxy.py223 # Create a real temporary directoryCOMMENT
MEDIUM…ent-python/examples/get_reports_about_intrusion_set.py14# Create the Intrusion SetCOMMENT
MEDIUM⚡…xamples/create_campaign_attributed-to_intrusion_set.py15# Define the dateCOMMENT
MEDIUM⚡…xamples/create_campaign_attributed-to_intrusion_set.py18# Create the Intrusion SetCOMMENT
MEDIUM⚡…xamples/create_campaign_attributed-to_intrusion_set.py28# Create the CampaignCOMMENT
MEDIUM…ent-python/examples/create_security_coverage_result.py33# Create a security coverage resultCOMMENT
MEDIUMclient-python/examples/export_incident_stix2.py25# Create the bundleCOMMENT
MEDIUMclient-python/examples/create_intrusion_set.py14# Create the Intrusion SetCOMMENT
MEDIUM⚡…n/examples/create_incident_with_ttps_and_indicators.py15# Define the dateCOMMENT
MEDIUM⚡…n/examples/create_incident_with_ttps_and_indicators.py22# Create the incidentCOMMENT
MEDIUM⚡…n/examples/create_incident_with_ttps_and_indicators.py29# Create the associated reportCOMMENT
MEDIUM…n/examples/create_incident_with_ttps_and_indicators.py64# Create the observable and indicator and indicates to the relationCOMMENT
MEDIUM…n/examples/create_incident_with_ttps_and_indicators.py65# Create the observableCOMMENT
MEDIUM…n/examples/create_incident_with_ttps_and_indicators.py109# Create the relationCOMMENT
MEDIUM…n/examples/create_incident_with_ttps_and_indicators.py124# Create the observable and indicator and indicates to the relationCOMMENT
MEDIUM…n/examples/create_incident_with_ttps_and_indicators.py125# Create the observableCOMMENT
MEDIUM…ent-python/examples/add_tool_usage_to_intrusion-set.py23# Create the relationCOMMENT
MEDIUMclient-python/examples/export_report_stix2.py14# Create the bundleCOMMENT
MEDIUM…thon/examples/upload_file_to_intrusion_set_embedded.py14# Create the Intrusion SetCOMMENT
MEDIUM⚡client-python/examples/create_report_with_author.py15# Define the dateCOMMENT
MEDIUM⚡client-python/examples/create_report_with_author.py18# Create the author (if not exists)COMMENT
MEDIUM⚡client-python/examples/create_report_with_author.py26# Create the reportCOMMENT
MEDIUMclient-python/examples/export_incidents_stix2.py14# Create the bundleCOMMENT
MEDIUMclient-python/examples/add_label_to_observable.py13# Create the observableCOMMENT
MEDIUMclient-python/examples/add_label_to_observable.py17# Create the tag (if not exists)COMMENT
MEDIUM⚡…nt-python/examples/add_external_reference_to_report.py15# Define the dateCOMMENT
MEDIUM⚡…nt-python/examples/add_external_reference_to_report.py18# Create the reportCOMMENT
MEDIUM⚡…nt-python/examples/add_external_reference_to_report.py26# Create the external referenceCOMMENT
MEDIUM…on/examples/upload_file_with_intrusion_set_embedded.py19# Create the Intrusion SetCOMMENT
MEDIUMclient-python/examples/create_indicator_of_campaign.py15# Define the dateCOMMENT
MEDIUMclient-python/examples/create_indicator_of_campaign.py18# Create the CampaignCOMMENT
MEDIUMclient-python/examples/create_indicator_of_campaign.py29# Create the indicatorCOMMENT
MEDIUMclient-python/examples/create_indicator_of_campaign.py40# Create the relationCOMMENT
MEDIUMclient-python/examples/create_indicator_of_campaign.py53# Create the observables (optional)COMMENT
MEDIUMclient-python/examples/create_indicator_of_campaign.py60# Create the relation between observables and the indicatorCOMMENT
MEDIUMclient-python/examples/get_indicators_of_malware.py14# Create the MalwareCOMMENT
MEDIUMclient-python/examples/get_malwares_of_intrusion_set.py14# Create the Intrusion SetCOMMENT
MEDIUMclient-python/examples/update_entity_attribute.py14# Create the Intrusion SetCOMMENT
MEDIUMclient-python/examples/export_intrusion_set_stix2.py14# Create the bundleCOMMENT
MEDIUMclient-python/examples/create_marking_definition.py13# Create the marking definitionCOMMENT
MEDIUMclient-python/examples/upload_file_to_intrusion_set.py14# Create the Intrusion SetCOMMENT
MEDIUMclient-python/examples/add_label_to_malware.py13# Create the malwareCOMMENT
MEDIUMclient-python/examples/add_label_to_malware.py18# Create the tag (if not exists)COMMENT
MEDIUMclient-python/examples/add_organization_to_sector.py18# Create the organizationCOMMENT
MEDIUMclient-python/examples/add_organization_to_sector.py23# Create the relationCOMMENT
MEDIUMclient-python/examples/update_observable_attributes.py13# Create an observableCOMMENT
MEDIUMclient-python/examples/ask_enrichment_of_observable.py15# Create the observableCOMMENT
MEDIUMclient-python/pycti/utils/opencti_stix2.py1799 # Create the relationSTRING
MEDIUMclient-python/pycti/utils/opencti_stix2.py1894 # Create the sightingSTRING
MEDIUM…ent-python/pycti/connector/opencti_connector_helper.py2457 # Initialize ConnectorInfo instanceCOMMENT
MEDIUM…ent-python/pycti/connector/opencti_connector_helper.py2509 # Create a tokenCOMMENT
MEDIUMclient-python/pycti/api/opencti_api_client.py271 # Define the dependenciesCOMMENT
MEDIUMclient-python/pycti/api/opencti_api_client.py285 # Define the entitiesCOMMENT
Fake / Example Data107 hits · 119 pts
SeverityFileLineSnippetContext
LOW…hql/tests/03-integration/02-resolvers/playbook-test.ts377 filters: [{ key: ['fake_key'], values: [], operator: 'nil' }],CODE
LOW…hql/tests/03-integration/02-resolvers/playbook-test.ts503 filters: [{ key: ['fake_key'], values: [], operator: 'nil' }],CODE
LOW…aphql/tests/03-integration/01-database/xtm-hub-test.ts21 const xtm_hub_token = 'fake-token';CODE
LOW…aphql/tests/03-integration/01-database/xtm-hub-test.ts404 xtm_hub_token: 'fake-token',CODE
LOW…aphql/tests/03-integration/01-database/xtm-hub-test.ts475 expect(consumeProvisionedNewsFeedItemsSpy).toHaveBeenCalledWith('settings_id', 'fake-token');CODE
LOW…ation/10-modules/decayRules/decayRule-resolver-test.ts449 variables: { id: 'dummy-id' },CODE
LOW…ation/10-modules/decayRules/decayRule-resolver-test.ts454 variables: { id: 'dummy-id' },CODE
LOW…/opencti-graphql/tests/01-unit/database/engine-test.js197 const emails = ['user@example.com', 'user2@example.com', 'user3@example.com'];CODE
LOW…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts132 oauthUser: 'user@example.com',CODE
LOW…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts150 user: 'user@example.com',CODE
LOW…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts178 expect(result).toHaveProperty('user', 'user@example.com');CODE
LOW…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts189 await expect(buildSmtpAuth('oauth2', { oauthUser: 'user@example.com' })).rejects.toThrow(CODE
LOW…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts196 oauthUser: 'user@example.com',CODE
LOW⚡…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts323 const result = await buildSmtpAuth('basic', { username: 'user@example.com', password: 'mypassword' });CODE
LOW⚡…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts324 expect(result).toStrictEqual({ user: 'user@example.com', pass: 'mypassword' });CODE
LOW⚡…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts328 const result = await buildSmtpAuth(undefined, { username: 'user@example.com', password: 'mypassword' });CODE
LOW⚡…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts329 expect(result).toStrictEqual({ user: 'user@example.com', pass: 'mypassword' });CODE
LOW⚡…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts333 const result = await buildSmtpAuth('basic', { username: 'user@example.com' });CODE
LOW⚡…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts334 expect(result).toStrictEqual({ user: 'user@example.com', pass: '' });CODE
LOW…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts354 const result = await buildSmtpAuth('something-else', { username: 'user@example.com', password: 'p' });CODE
LOW…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts355 expect(result).toStrictEqual({ user: 'user@example.com', pass: 'p' });CODE
LOW…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts371 oauthUser: 'user@example.com',CODE
LOW⚡…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts621 const result = await smtpTest('admin@example.com');CODE
LOW⚡…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts625 expect(call.to).toBe('admin@example.com');CODE
LOW⚡…rm/opencti-graphql/tests/01-unit/database/smtp-test.ts633 await expect(smtpTest('admin@example.com')).rejects.toThrow('connection refused');CODE
LOW…abase/stix-2-0-converter-fixtures/SCOs/payment-card.ts9 holder_name: 'John Doe',CODE
LOW…abase/stix-2-0-converter-fixtures/SCOs/payment-card.ts26 holder_name: 'John Doe',CODE
LOW…hql/tests/01-unit/utils/streamConsumerRegistry-test.ts275 userEmail: 'admin@example.com',CODE
LOW⚡…tform/opencti-graphql/tests/01-unit/utils/hash-test.ts7 const CONTENT_1 = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuntCODE
LOW⚡…tform/opencti-graphql/tests/01-unit/utils/hash-test.ts7 const CONTENT_1 = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuntCODE
LOW⚡…tform/opencti-graphql/tests/01-unit/utils/hash-test.ts14 const CONTENT_2 = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuntCODE
LOW⚡…tform/opencti-graphql/tests/01-unit/utils/hash-test.ts14 const CONTENT_2 = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuntCODE
LOW⚡…tform/opencti-graphql/tests/01-unit/utils/hash-test.ts21 const CONTENT_3 = `Lorem ipsomme dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuntCODE
LOW…graphql/tests/01-unit/manager/publisherManager-test.ts131 name: 'John Doe',CODE
LOW…/modules/authenticationProvider/mappings-utils-test.ts39 'http://example.com/claims/email': 'user@example.com',CODE
LOW…/modules/authenticationProvider/mappings-utils-test.ts43 expect(result).toBe('user@example.com');CODE
LOW⚡…/modules/authenticationProvider/mappings-utils-test.ts235 const obj = { UserInfo: { Email: 'user@example.com' } };CODE
LOW⚡…/modules/authenticationProvider/mappings-utils-test.ts237 expect(result).toBe('user@example.com');CODE
LOW⚡…/modules/authenticationProvider/mappings-utils-test.ts247 const obj = { User_Info: { EMAIL: 'user@example.com' } };CODE
LOW⚡…/modules/authenticationProvider/mappings-utils-test.ts249 expect(result).toBe('user@example.com');CODE
LOW…nit/modules/configPreset/configPreset-registry-test.ts39 platform_email: 'admin@example.com',CODE
LOW…nit/modules/configPreset/configPreset-registry-test.ts319 ['secret', 'enterprise_license', 'admin@example.com', 'cert_auth', 'local_auth', 'otp_mandatory', 'platform_theme', CODE
LOW…les/disseminationList/disseminationList-domain-test.ts74const mockUser = { id: 'user-1', user_email: 'user@example.com' } as any;CODE
LOW…les/disseminationList/disseminationList-domain-test.ts125 expect(sendMailArgs.bcc).toStrictEqual(['a@example.com', 'b@example.com', 'user@example.com']);CODE
LOW…graphql/tests/01-unit/modules/user/user-domain-test.ts40 user_email: 'test@test.com',CODE
LOW…graphql/tests/01-unit/modules/user/user-domain-test.ts218 expect(input.value).toEqual(['test@test.com']);CODE
LOW…aphql/tests/01-unit/modules/user/user-resolver-test.ts48 const self = { id: 'user-id', name: 'John Doe', entity_type: ENTITY_TYPE_USER };CODE
LOW…aphql/tests/01-unit/modules/user/user-resolver-test.ts49 expect(resolveField(memberResolvers.name, self, { user: { id: 'user-id' } })).toEqual('John Doe');CODE
LOW…hql/tests/01-unit/modules/user/user-definition-test.ts25 expect(extractStixRepresentative(convertUserToStix(buildUser('John Doe')))).toEqual('John Doe');CODE
LOW…phql/tests/01-unit/modules/user/user-converter-test.ts16 name: 'John Doe',CODE
LOW…pencti-graphql/tests/01-unit/modules/user/user-test.ts29 updateAttribute: vi.fn().mockResolvedValue({ element: { id: 'mock-id', user_email: 'test@test.com' } }),CODE
LOW…s/01-unit/modules/user/user-api-token-security-test.ts213 const result = await sessionLogin(context, { email: 'user@example.com', password: 'pass' });CODE
LOW…s/01-unit/modules/user/user-api-token-security-test.ts226 await sessionLogin(context, { email: 'user@example.com', password: 'pass' });CODE
LOW…s/01-unit/modules/user/user-api-token-security-test.ts255 sessionLogin(context, { email: 'user@example.com', password: 'pass' }),CODE
LOW…s/01-unit/modules/user/user-api-token-security-test.ts276 const result = await sessionLogin(context, { email: 'user@example.com', password: 'pass' });CODE
LOW…encti-graphql/tests/01-unit/domain/form-intake-test.ts9 const entity = { entity_type: 'Individual', name: 'John Doe' } as StoreEntity;CODE
LOW…encti-graphql/tests/01-unit/domain/form-intake-test.ts29 const entity = { entity_type: 'Individual', name: 'Jane Doe' } as StoreEntity;CODE
LOW…orm/opencti-graphql/tests/data/DATA-TEST-STIX2_v2.json558 "name": "John Doe",CODE
LOW…orm/opencti-graphql/tests/data/data-test-stix-e2e.json352 "name": "John Doe",CODE
LOW…ncti-graphql/tests/data/filters/DATA-TEST-FILTERS.json454 "name": "John Doe",CODE
47 more matches not shown…
Hallucination Indicators10 hits · 100 pts
SeverityFileLineSnippetContext
CRITICAL…ql/tests/03-integration/02-resolvers/connector-test.ts489 expect(queryResult.data.pingConnector.connector_info.next_run_datetime.toISOString()).toBe(datetimeNextRun.toISOStriCODE
CRITICAL…ql/tests/03-integration/02-resolvers/connector-test.ts490 expect(queryResult.data.pingConnector.connector_info.last_run_datetime.toISOString()).toBe(datetimeLastRun.toISOStriCODE
CRITICAL…/playbookComponents/create-indicator-component-test.ts745 const titles = schema.properties.types.items.oneOf.map((e: {CODE
CRITICAL…tests/20-rules/report-refs-observable-based-on-test.js178 const inferenceEdge = queryResult.data.report.objects.edges.find((e) => e.node.standard_id === 'indicator--b05c9d2CODE
CRITICAL…latform/opencti-graphql/src/graphql/telemetryPlugin.js35 type: requestError ? sendContext.response.body.singleResult.errors.at(0)?.name ?? requestError.name : undefineCODE
CRITICAL…s/fields/markdownField/hooks/useMarkdownImages.test.ts68 const attachment = hook.result.current.registryRef.current.createTempAttachment(file);CODE
CRITICAL…s/fields/markdownField/hooks/useMarkdownImages.test.ts71 hook.result.current.pendingCleanupTimeoutRef.current.set(token, timeoutId);CODE
CRITICAL…s/fields/markdownField/hooks/useMarkdownImages.test.ts87 expect(hook.result.current.pendingCleanupTimeoutRef.current.has(token)).toBe(false);CODE
CRITICAL…s/fields/markdownField/hooks/useMarkdownImages.test.ts88 expect(hook.result.current.registryRef.current.getAttachment(token)).toBeUndefined();CODE
CRITICAL…_domain_objects/StixDomainObjectVictimologySectors.jsx150 sectors: n.node.to.sectors.edges.map(CODE
Over-Commented Block77 hits · 73 pts
SeverityFileLineSnippetContext
LOW…l/tests/03-integration/02-resolvers/user-token-test.ts181COMMENT
LOW…3-integration/02-resolvers/connector-migration-test.ts321 });COMMENT
LOW…3-integration/02-resolvers/connector-migration-test.ts341 // FUNCTIONAL_ERROR,COMMENT
LOW…3-integration/02-resolvers/connector-migration-test.ts361 // 'Connector not found',COMMENT
LOW…3-integration/02-resolvers/connector-migration-test.ts381 // expect(standaloneConnector.connector_user_id).toMatch(userId);COMMENT
LOW…s/03-integration/05-parser/importCsv-connector-test.ts41 workId: work.id,COMMENT
LOW…s/03-integration/05-parser/importCsv-connector-test.ts61 // next 5 lines:COMMENT
LOW…latform/opencti-graphql/tests/utils/testQueryHelper.ts21import { ADMIN_USER, getAuthUser, getOrganizationIdByName, type OrganizationTestData, testContext, type UserTestData } fCOMMENT
LOW…ql/tests/20-rules/report-refs-identity-part-of-test.js21 const createdElements = [];COMMENT
LOW…tests/20-rules/report-refs-observable-based-on-test.js21COMMENT
LOW…nit/database/middleware-restricted-entity-unit-test.ts41// ── Reproduction of GitHub issue #18026 ──────────────────────────────────────COMMENT
LOW…s/01-unit/modules/workflow-lifecycle-benchmark-test.ts1import { beforeEach, describe, expect, it, vi } from 'vitest';COMMENT
LOW…tform/opencti-graphql/src/types/stix-2-1-extensions.ts1// Common attribute of OCTI added to every entitiesCOMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py81 # systems.COMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py121 # content in the packet payload and triggerCOMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py141 # The nocase keyword allows the rule writer toCOMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py161 # ignore before starting to search for theCOMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py181 # that restricts the search to the extractedCOMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py201 # that restricts the search to the extractedCOMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py221 # the same content.COMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py241 # NOTE: The http_stat_msg modifier is not allowedCOMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py261 # 1. http_cookie,COMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py281 # with the fast pattern matcher.COMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py301 # option, check the manual for pitfalls.COMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py321 # 7. SMTP/POP/IMAP data bodyCOMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py341 # TODO: check for options.COMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py361 # value and a specified value orCOMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py381 # to set flow-bits based on a client bind to aCOMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py401 # codes specified matches the status codes ofCOMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py421 # TODO: identify also gtp message types, but forCOMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py461 "id",COMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py481 "flags",COMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py501 # a specific TCP window sizeCOMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py521 "sameip",COMMENT
LOW…pencti-graphql/src/python/runtime/snort/snort_dicts.py561 # This keyword implements an ability for users toCOMMENT
LOWopencti-platform/opencti-graphql/src/utils/refang.js21 // Refang common obfuscations (all patterns from both functions)COMMENT
LOWopencti-platform/opencti-graphql/src/utils/refang.js41 // Replace [://] or similar with ://COMMENT
LOW…ti-platform/opencti-graphql/src/resolvers/container.js61 relatedContainers: (container, args, context) => relatedContainers(context, context.user, container.id, args),COMMENT
LOW…-platform/opencti-graphql/src/http/httpChatbotProxy.ts21COMMENT
LOW…-platform/opencti-graphql/src/http/httpChatbotProxy.ts381COMMENT
LOW…-platform/opencti-graphql/src/http/httpChatbotProxy.ts761 logApp.warn('Chatbot file download rejected due to invalid draft context', { cause: draftErr });COMMENT
LOW…-platform/opencti-graphql/src/http/httpChatbotProxy.ts1121 res.setHeader('X-Accel-Buffering', 'no');COMMENT
LOW…-platform/opencti-graphql/src/http/httpChatbotProxy.ts1201 // so validate the draft context explicitly before either serving a cachedCOMMENT
LOWopencti-platform/opencti-graphql/src/http/httpUtils.ts61 // Keep only the pathname and search to prevent OPEN REDIRECT CWE-601COMMENT
LOW…opencti-graphql/src/telemetry/TelemetryMeterManager.ts61 // whole helper exists to withhold. Callers treat '' as "no usable identity".COMMENT
LOWopencti-platform/opencti-front/vitest.d.ts1import type { TestingLibraryMatchers } from '@testing-library/jest-dom/matchers';COMMENT
LOWopencti-platform/opencti-front/playwright.config.ts101 width: 1920,COMMENT
LOWopencti-platform/opencti-front/playwright.config.ts201 // }COMMENT
LOW…opencti-front/tests_e2e/trash/createTrashEntry.spec.ts1// TODO: uncomment when feature flag is removed, since e2e backend tests currently use default feature flag configCOMMENT
LOW…opencti-front/tests_e2e/trash/createTrashEntry.spec.ts21// await page.getByRole('link', { name: reportName }).first().getByRole('checkbox').click();COMMENT
LOW…cti-front/tests_e2e/model/field/TextField.pageModel.ts41 this.parentLocator = root.getByText(label).locator('../..');COMMENT
LOW…platform/opencti-front/tests_e2e/report/report.spec.ts381 // scoped to the dialog — name = "Jeanne Mitchel Report" — so the name can no longer beCOMMENT
LOW…platform/opencti-front/tests_e2e/report/report.spec.ts401 // only the colour can report itself missing. The other mount — the sharedCOMMENT
LOW…platform/opencti-front/tests_e2e/report/report.spec.ts461 await entitiesTab.addEntity('This is a note');COMMENT
LOW…platform/opencti-front/tests_e2e/report/report.spec.ts481 // await toolbar.launchDelete();COMMENT
LOW…m/opencti-front/tests_e2e/report/assets/report.test.md1# Test report e2eCOMMENT
LOW…nt/tests_e2e/incidentResponse/incidentResponse.spec.ts321 // Create author from the incident response creation formCOMMENT
LOW…nt/tests_e2e/incidentResponse/incidentResponse.spec.ts341 //COMMENT
LOW…s_e2e/incidentResponse/assets/incidentResponse.test.md1# incident response test mdCOMMENT
LOW…-platform/opencti-front/src/components/SearchInput.jsx281 const nlqNoAgentAvailable = useXtmOne && nlqAgentsFetched && nlqAgents.length === 0;COMMENT
17 more matches not shown…
Unused Imports96 hits · 58 pts
SeverityFileLineSnippetContext
LOW…m/opencti-graphql/src/python/testing/local_uploader.py1CODE
LOWclient-python/pycti/__init__.py4CODE
LOWclient-python/pycti/__init__.py5CODE
LOWclient-python/pycti/__init__.py6CODE
LOWclient-python/pycti/__init__.py7CODE
LOWclient-python/pycti/__init__.py7CODE
LOWclient-python/pycti/__init__.py8CODE
LOWclient-python/pycti/__init__.py8CODE
LOWclient-python/pycti/__init__.py12CODE
LOWclient-python/pycti/__init__.py13CODE
LOWclient-python/pycti/__init__.py14CODE
LOWclient-python/pycti/__init__.py15CODE
LOWclient-python/pycti/__init__.py16CODE
LOWclient-python/pycti/__init__.py17CODE
LOWclient-python/pycti/__init__.py18CODE
LOWclient-python/pycti/__init__.py19CODE
LOWclient-python/pycti/__init__.py20CODE
LOWclient-python/pycti/__init__.py21CODE
LOWclient-python/pycti/__init__.py22CODE
LOWclient-python/pycti/__init__.py23CODE
LOWclient-python/pycti/__init__.py24CODE
LOWclient-python/pycti/__init__.py25CODE
LOWclient-python/pycti/__init__.py26CODE
LOWclient-python/pycti/__init__.py27CODE
LOWclient-python/pycti/__init__.py28CODE
LOWclient-python/pycti/__init__.py29CODE
LOWclient-python/pycti/__init__.py30CODE
LOWclient-python/pycti/__init__.py31CODE
LOWclient-python/pycti/__init__.py32CODE
LOWclient-python/pycti/__init__.py33CODE
LOWclient-python/pycti/__init__.py34CODE
LOWclient-python/pycti/__init__.py35CODE
LOWclient-python/pycti/__init__.py36CODE
LOWclient-python/pycti/__init__.py37CODE
LOWclient-python/pycti/__init__.py38CODE
LOWclient-python/pycti/__init__.py39CODE
LOWclient-python/pycti/__init__.py40CODE
LOWclient-python/pycti/__init__.py41CODE
LOWclient-python/pycti/__init__.py42CODE
LOWclient-python/pycti/__init__.py43CODE
LOWclient-python/pycti/__init__.py44CODE
LOWclient-python/pycti/__init__.py45CODE
LOWclient-python/pycti/__init__.py46CODE
LOWclient-python/pycti/__init__.py47CODE
LOWclient-python/pycti/__init__.py48CODE
LOWclient-python/pycti/__init__.py49CODE
LOWclient-python/pycti/__init__.py50CODE
LOWclient-python/pycti/__init__.py51CODE
LOWclient-python/pycti/__init__.py52CODE
LOWclient-python/pycti/__init__.py53CODE
LOWclient-python/pycti/__init__.py54CODE
LOWclient-python/pycti/__init__.py55CODE
LOWclient-python/pycti/__init__.py56CODE
LOWclient-python/pycti/__init__.py57CODE
LOWclient-python/pycti/__init__.py60CODE
LOWclient-python/pycti/__init__.py61CODE
LOWclient-python/pycti/__init__.py62CODE
LOWclient-python/pycti/__init__.py63CODE
LOWclient-python/pycti/__init__.py64CODE
LOWclient-python/pycti/__init__.py65CODE
36 more matches not shown…
Excessive Try-Catch Wrapping62 hits · 57 pts
SeverityFileLineSnippetContext
LOW…ncti-graphql/src/python/runtime/utils/runtime_utils.py11 except Exception as e:CODE
MEDIUM…ncti-graphql/src/python/runtime/utils/runtime_utils.py7def return_data(data):CODE
LOW…encti-graphql/src/python/runtime/snort/snort_parser.py190 except Exception as e:CODE
LOW…encti-graphql/src/python/runtime/snort/snort_parser.py204 except Exception as e:CODE
LOW…encti-graphql/src/python/runtime/snort/snort_parser.py265 except Exception as e:CODE
LOW…encti-graphql/src/python/runtime/snort/snort_parser.py360 except Exception as perror:CODE
LOW…encti-graphql/src/python/runtime/snort/snort_parser.py368 except Exception as serror:CODE
LOW…m/opencti-graphql/src/python/testing/local_importer.py32 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…m/opencti-graphql/src/python/testing/local_uploader.py36 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…m/opencti-graphql/src/python/testing/local_exporter.py59 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…encti-graphql/src/python/testing/local_synchronizer.py130 except Exception as e: # pylint: disable=broad-exceptCODE
LOWdocs/docs/development/connectors.md170 except Exception as e:CODE
LOWdocs/docs/development/connectors.md195 except Exception as e:CODE
LOWdocs/docs/development/connectors.md383 except Exception as ex:CODE
LOWdocs/docs/development/connectors.md433 except Exception as ex:CODE
LOWopencti-worker/src/worker.py340 except Exception as e: # pylint: disable=broad-exceptCODE
LOWopencti-worker/src/message_queue_consumer.py49 except Exception as e:CODE
LOWopencti-worker/src/message_queue_consumer.py98 except Exception as e:CODE
MEDIUMopencti-worker/src/message_queue_consumer.py69def consume_queue(self) -> None:CODE
LOWopencti-worker/src/listen_handler.py78 except Exception as ex:CODE
LOWopencti-worker/src/push_handler.py89 except Exception as e:CODE
LOWopencti-worker/src/push_handler.py138 except Exception as err: # pylint: disable=broad-exceptCODE
LOWopencti-worker/src/push_handler.py178 except Exception as err: # pylint: disable=broad-exceptCODE
LOWopencti-worker/src/push_handler.py271 except Exception as ex:CODE
LOWopencti-worker/src/push_handler.py281 except Exception as telemetry_ex: # pylint: disable=broad-exceptCODE
LOWclient-python/pycti/utils/opencti_stix2.py3839 except Exception as ex: # pylint: disable=broad-exceptCODE
LOWclient-python/pycti/utils/opencti_stix2.py1037 except Exception:STRING
LOWclient-python/pycti/utils/opencti_stix2_update.py523 except Exception as err:CODE
MEDIUM…ent-python/pycti/connector/opencti_connector_helper.py1840def _sanitize_connector_error(error) -> Optional[Dict]:CODE
MEDIUM…ent-python/pycti/connector/opencti_connector_helper.py1859def _sanitize_connector_errors(errors) -> List[Dict]:CODE
LOW⚡…ent-python/pycti/connector/opencti_connector_helper.py911 except Exception as err: # pylint: disable=broad-exceptCODE
LOW⚡…ent-python/pycti/connector/opencti_connector_helper.py919 except Exception as err: # pylint: disable=broad-exceptCODE
LOW⚡…ent-python/pycti/connector/opencti_connector_helper.py922 except Exception as errInException:CODE
LOW⚡…ent-python/pycti/connector/opencti_connector_helper.py1855 except Exception: # pylint: disable=broad-exceptCODE
LOW⚡…ent-python/pycti/connector/opencti_connector_helper.py1866 except Exception: # pylint: disable=broad-exceptCODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py749 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py758 except Exception: # pylint: disable=broad-exceptCODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py787 except Exception as e:CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py839 except Exception as e:CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py1079 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py1155 except Exception as ex:CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py1525 except Exception as e:CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py1791 except Exception as ex:CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py2890 except Exception as e:CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py2936 except Exception as e:CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py3121 except Exception as err:CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py3180 except Exception as err:CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py3214 except Exception as err:CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py3244 except Exception as err:CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py3314 except Exception as err:CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py3393 except Exception as err:CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py3990 except Exception as err: # pylint: disable=broad-exceptCODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py3084 except Exception as e: # pylint: disable=broad-exceptSTRING
LOW…ent-python/pycti/connector/opencti_connector_helper.py3105 except Exception as err:STRING
LOWclient-python/pycti/api/opencti_api_work.py112 except Exception:STRING
LOWclient-python/pycti/api/opencti_api_work.py141 except Exception:STRING
LOWclient-python/pycti/api/opencti_api_work.py179 except Exception:STRING
LOWclient-python/pycti/api/opencti_api_client.py438 except Exception as e:CODE
LOWclient-python/pycti/api/opencti_api_client.py485 except Exception as e:CODE
LOWclient-python/pycti/api/opencti_api_client.py806 except Exception as e:CODE
2 more matches not shown…
Structural Annotation Overuse29 hits · 55 pts
SeverityFileLineSnippetContext
LOW…graphql/tests/03-integration/02-resolvers/user-test.ts2099 // Step 1: set policy to 0 (should clear dates)COMMENT
LOW…graphql/tests/03-integration/02-resolvers/user-test.ts2116 // Step 2: set policy to 1 (should give now+1 day)COMMENT
LOW…front/tests_e2e/drafts/threatAdvisoryHappyFlow.spec.ts179 // Step 18: the "Report created" playbook sets the final authorized members.COMMENT
LOW…nt/tests_e2e/securityCoverage/securityCoverage.spec.ts50 // Step 3 : select entities to cover (none for an empty report)COMMENT
LOW⚡…/securityCoverage/securityCoverageResultUpdate.spec.ts64 // Step 1: select the result to updateCOMMENT
LOW⚡…/securityCoverage/securityCoverageResultUpdate.spec.ts67 // Step 2: details, prefilled with the values of the resultCOMMENT
LOW⚡…/securityCoverage/securityCoverageResultUpdate.spec.ts72 // Step 3: entities already covered by the result are hiddenCOMMENT
LOW⚡…/securityCoverage/securityCoverageResultUpdate.spec.ts80 // Step 4: has-covered relationshipsCOMMENT
LOWdocs/docs/usage/playbook-creation.md31## Step 1: Set your event sourceCOMMENT
LOWdocs/docs/usage/playbook-creation.md37## Step 2: Build your workflow with Playbook ComponentsCOMMENT
LOWdocs/docs/usage/playbook-creation.md55## Step 3: End your playbookCOMMENT
LOWdocs/docs/usage/playbook-creation.md67## Step 4: Start your playbookCOMMENT
LOWdocs/docs/deployment/integration-manager/quick-start.md13## Step 1: Generate RSA private keyCOMMENT
LOWdocs/docs/deployment/integration-manager/quick-start.md21## Step 2: Basic configurationCOMMENT
LOWdocs/docs/deployment/integration-manager/quick-start.md59## Step 3: Choose your orchestration platformCOMMENT
LOWdocs/docs/deployment/integration-manager/quick-start.md99## Step 4: Run XTM ComposerCOMMENT
LOWdocs/docs/deployment/integration-manager/quick-start.md118## Step 5: Verify connectionCOMMENT
LOWdocs/docs/deployment/integration-manager/quick-start.md138## Step 6: Verify in OpenCTICOMMENT
LOW⚡docs/docs/deployment/integration-manager/migration.md19## Step 1 : Verify that the connector is compatible with the integration managerCOMMENT
LOW⚡docs/docs/deployment/integration-manager/migration.md26## Step 2 : Get the current configuration of the connector instanceCOMMENT
LOW⚡docs/docs/deployment/integration-manager/migration.md32## Step 3 : Deploy the new instanceCOMMENT
LOW⚡docs/docs/deployment/integration-manager/migration.md40## Step 4 : Start the new instanceCOMMENT
LOW⚡docs/docs/deployment/integration-manager/migration.md46## Step 5 : Delete the old instanceCOMMENT
LOW⚡.github/agents/codebase-pattern-finder.agent.md44### Step 1: Identify Pattern TypesCOMMENT
LOW⚡.github/agents/codebase-pattern-finder.agent.md53### Step 2: Search!COMMENT
LOW⚡.github/agents/codebase-pattern-finder.agent.md57### Step 3: Read and ExtractCOMMENT
LOW⚡.github/agents/codebase-analyzer.agent.md56### Step 1: Read Entry PointsCOMMENT
LOW⚡.github/agents/codebase-analyzer.agent.md62### Step 2: Follow the Code PathCOMMENT
LOW⚡.github/agents/codebase-analyzer.agent.md70### Step 3: Document Key LogicCOMMENT
Deep Nesting60 hits · 50 pts
SeverityFileLineSnippetContext
LOW…encti-graphql/src/python/runtime/snort/snort_parser.py100CODE
LOW…encti-graphql/src/python/runtime/snort/snort_parser.py147CODE
LOW…encti-graphql/src/python/testing/local_synchronizer.py60CODE
LOWdocs/hooks/shared_assets.py82CODE
LOWopencti-worker/src/worker.py228CODE
LOWopencti-worker/src/push_handler.py83CODE
LOWclient-python/tests/utils.py69CODE
LOW…thon/tests/02-integration/entities/test_entity_crud.py45CODE
LOW…thon/tests/02-integration/entities/test_observables.py67CODE
LOW…hon/tests/01-unit/api/test_opencti_api_client-proxy.py251CODE
LOW…n/examples/cmd_line_tag_latest_indicators_of_threat.py17CODE
LOWclient-python/pycti/utils/opencti_stix2.py387CODE
LOWclient-python/pycti/utils/opencti_stix2.py431CODE
LOWclient-python/pycti/utils/opencti_stix2.py575CODE
LOWclient-python/pycti/utils/opencti_stix2.py1470CODE
LOWclient-python/pycti/utils/opencti_stix2.py1720CODE
LOWclient-python/pycti/utils/opencti_stix2.py1985CODE
LOWclient-python/pycti/utils/opencti_stix2.py2260CODE
LOWclient-python/pycti/utils/opencti_stix2.py3029CODE
LOWclient-python/pycti/utils/opencti_stix2.py3175CODE
LOWclient-python/pycti/utils/opencti_stix2.py3435CODE
LOWclient-python/pycti/utils/opencti_stix2.py3484CODE
LOWclient-python/pycti/utils/opencti_stix2.py3620CODE
LOWclient-python/pycti/utils/opencti_stix2.py3796CODE
LOWclient-python/pycti/utils/opencti_stix2.py3930CODE
LOWclient-python/pycti/utils/opencti_stix2_utils.py409CODE
LOWclient-python/pycti/utils/opencti_stix2_splitter.py80CODE
LOW…ti/utils/opencti_stix2_markdown_embedded_file_utils.py4CODE
LOWclient-python/pycti/utils/opencti_stix2_update.py23CODE
LOWclient-python/pycti/utils/opencti_stix2_update.py57CODE
LOWclient-python/pycti/utils/opencti_stix2_update.py228CODE
LOWclient-python/pycti/utils/opencti_stix2_update.py284CODE
LOWclient-python/pycti/utils/opencti_stix2_update.py429CODE
LOWclient-python/pycti/utils/opencti_stix2_update.py474CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py604CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py868CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py1128CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py1218CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py1392CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py1656CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py2185CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py2897CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py3734CODE
LOW…ient-python/pycti/connector/opencti_connector_build.py36CODE
LOWclient-python/pycti/api/opencti_api_client.py98CODE
LOWclient-python/pycti/api/opencti_api_client.py354CODE
LOWclient-python/pycti/api/opencti_api_client.py444CODE
LOWclient-python/pycti/api/opencti_api_client.py635CODE
LOWclient-python/pycti/api/opencti_api_client.py852CODE
LOWclient-python/pycti/entities/opencti_location.py282CODE
LOWclient-python/pycti/entities/opencti_location.py624CODE
LOW…ython/pycti/entities/opencti_stix_core_relationship.py605CODE
LOWclient-python/pycti/entities/opencti_identity.py496CODE
LOWclient-python/pycti/entities/opencti_identity.py698CODE
LOW…nt-python/pycti/entities/opencti_marking_definition.py302CODE
LOW…ient-python/pycti/entities/opencti_course_of_action.py599CODE
LOW…python/pycti/entities/opencti_stix_cyber_observable.py278CODE
LOW…nt-python/pycti/entities/opencti_stix_domain_object.py1323CODE
LOWclient-python/pycti/entities/opencti_attack_pattern.py636CODE
LOW…n/pycti/entities/opencti_stix_sighting_relationship.py515CODE
AI Slop Vocabulary16 hits · 46 pts
SeverityFileLineSnippetContext
MEDIUM⚡…encti-graphql/tests/01-unit/parser/json-mapper-misp.ts3946 "content": "## Executive Summary\\r\\n\\r\\n Lumen’s Black Lotus Labs has uncovered a longstanding campaCODE
MEDIUM⚡…encti-graphql/tests/01-unit/parser/json-mapper-misp.ts3946 "content": "## Executive Summary\\r\\n\\r\\n Lumen’s Black Lotus Labs has uncovered a longstanding campaCODE
MEDIUM⚡…encti-graphql/tests/01-unit/parser/json-mapper-misp.ts3946 "content": "## Executive Summary\\r\\n\\r\\n Lumen’s Black Lotus Labs has uncovered a longstanding campaCODE
MEDIUM⚡…encti-graphql/tests/01-unit/parser/json-mapper-misp.ts3946 "content": "## Executive Summary\\r\\n\\r\\n Lumen’s Black Lotus Labs has uncovered a longstanding campaCODE
MEDIUM…pencti-graphql/src/python/runtime/snort/snort_dicts.py250 # be used in conjunction with each other for theCOMMENT
MEDIUM⚡opencti-platform/opencti-graphql/src/parser/misp.json2673 "content": "## Executive Summary\r\n\r\n Lumen’s Black Lotus Labs has uncovered a longstanding campaign orchestrCODE
MEDIUM⚡opencti-platform/opencti-graphql/src/parser/misp.json2673 "content": "## Executive Summary\r\n\r\n Lumen’s Black Lotus Labs has uncovered a longstanding campaign orchestrCODE
MEDIUM⚡opencti-platform/opencti-graphql/src/parser/misp.json2673 "content": "## Executive Summary\r\n\r\n Lumen’s Black Lotus Labs has uncovered a longstanding campaign orchestrCODE
MEDIUM⚡opencti-platform/opencti-graphql/src/parser/misp.json2673 "content": "## Executive Summary\r\n\r\n Lumen’s Black Lotus Labs has uncovered a longstanding campaign orchestrCODE
MEDIUM⚡opencti-platform/opencti-graphql/src/parser/bundle.json11608 "content": "## Executive Summary\r\n\r\n Lumen\u2019s Black Lotus Labs has uncovered a longstanding campaign orcheCODE
MEDIUM⚡opencti-platform/opencti-graphql/src/parser/bundle.json11608 "content": "## Executive Summary\r\n\r\n Lumen\u2019s Black Lotus Labs has uncovered a longstanding campaign orcheCODE
MEDIUM⚡opencti-platform/opencti-graphql/src/parser/bundle.json11608 "content": "## Executive Summary\r\n\r\n Lumen\u2019s Black Lotus Labs has uncovered a longstanding campaign orcheCODE
MEDIUM⚡opencti-platform/opencti-graphql/src/parser/bundle.json11608 "content": "## Executive Summary\r\n\r\n Lumen\u2019s Black Lotus Labs has uncovered a longstanding campaign orcheCODE
MEDIUM…graphql/src/modules/workflow/domain/workflow-domain.ts294 // Find existing instance via entity_id attribute directly (more robust than relationship)COMMENT
MEDIUM…form/opencti-graphql/src/domain/stixCyberObservable.js433 // Use both MIME type AND file extension for robust detection of Office Open XML filesCOMMENT
LOWclient-python/pycti/utils/opencti_stix2.py3444 # If data is stix, just use the generic stix function for deletionCOMMENT
Empty Error Handlers6 hits · 30 pts
SeverityFileLineSnippetContext
HIGH…ython/tests/02-integration/connector/test_connector.py26except ValueError:CODE
HIGH…ests/01-unit/connector/test_schedule_process_errors.py267except SystemExit:CODE
HIGH…ent-python/pycti/connector/opencti_connector_helper.py3055except: # pylint: disable=bare-except # noqa: E722CODE
HIGH…ent-python/pycti/connector/opencti_connector_helper.py1749except queue.Full:CODE
HIGH…ent-python/pycti/connector/opencti_connector_helper.py1258except queue.Full:CODE
HIGHclient-python/pycti/api/opencti_api_client.py1306except Exception:CODE
Cross-Language Confusion4 hits · 25 pts
SeverityFileLineSnippetContext
HIGH…-python/examples/create_observable_x509_certificate.py29 "basic_constraints": '{"is_ca":null,"max_path_len":null}',CODE
HIGH…-python/examples/create_observable_x509_certificate.py33 "key_usage": '{"certificate_sign":null,"content_commitment":null,"crl_sign":null,"data_encipherment":null,"decipCODE
HIGHclient-python/pycti/api/opencti_api_client.py614 # caller (as opposed to an explicit None/null).COMMENT
HIGHclient-python/pycti/api/opencti_api_client.py658 # If yes, transform variable (file to null) and create multipart queryCOMMENT
Verbosity Indicators14 hits · 24 pts
SeverityFileLineSnippetContext
LOW…graphql/tests/03-integration/02-resolvers/user-test.ts2099 // Step 1: set policy to 0 (should clear dates)COMMENT
LOW…graphql/tests/03-integration/02-resolvers/user-test.ts2116 // Step 2: set policy to 1 (should give now+1 day)COMMENT
LOW…ti-platform/opencti-graphql/src/database/middleware.ts2657 // If user ask for aliases modification, we need to check if it not already belong to another entity.COMMENT
LOW…-platform/opencti-graphql/src/database/file-storage.ts207 // 03. Check if metadata contains an entity_id, we need to check if the user has real access to this instanceCOMMENT
LOW…-platform/opencti-graphql/src/utils/clean-relations.js100 // For each relations of the platform we need to check if the from and the to are available.COMMENT
LOW…orm/opencti-graphql/src/manager/notificationManager.ts631 // For each event we need to check ifsCOMMENT
LOW…graphql/src/manager/playbookManager/playbookManager.ts99 // For each event we need to check ifsCOMMENT
LOW…front/tests_e2e/drafts/threatAdvisoryHappyFlow.spec.ts179 // Step 18: the "Report created" playbook sets the final authorized members.COMMENT
LOW…nt/tests_e2e/securityCoverage/securityCoverage.spec.ts50 // Step 3 : select entities to cover (none for an empty report)COMMENT
LOW⚡…/securityCoverage/securityCoverageResultUpdate.spec.ts64 // Step 1: select the result to updateCOMMENT
LOW⚡…/securityCoverage/securityCoverageResultUpdate.spec.ts67 // Step 2: details, prefilled with the values of the resultCOMMENT
LOW⚡…/securityCoverage/securityCoverageResultUpdate.spec.ts72 // Step 3: entities already covered by the result are hiddenCOMMENT
LOW⚡…/securityCoverage/securityCoverageResultUpdate.spec.ts80 // Step 4: has-covered relationshipsCOMMENT
LOWclient-python/pycti/utils/opencti_stix2_splitter.py113 # We need to check if this ref is not already a referenceCOMMENT
Redundant / Tautological Comments10 hits · 14 pts
SeverityFileLineSnippetContext
LOWopencti-platform/opencti-dev/docker-compose.yml77 soft: -1 # Set memlock to unlimited (no soft or hard limit)CODE
LOWopencti-worker/src/worker.py179 # Check if openCTI is availableCOMMENT
LOWopencti-worker/src/worker.py259 # Check if all queues are consumedCOMMENT
LOW.github/workflows/pr-add-labels.yml44 # Check if any new files were added in the migrations directoryCOMMENT
LOWclient-python/pycti/utils/opencti_stix2.py3959 # Check if the bundle is correctly formattedCOMMENT
LOW…ent-python/pycti/connector/opencti_connector_helper.py4137 # Check if item are native STIX 2 libCOMMENT
LOWclient-python/pycti/api/opencti_api_client.py348 # Check if openCTI is availableCOMMENT
LOWclient-python/pycti/api/opencti_api_client.py458 # Check if it's inline certificate content (starts with PEM header)COMMENT
LOWclient-python/pycti/api/opencti_api_client.py465 # Check if it's a file pathCOMMENT
LOWclient-python/pycti/api/opencti_api_client.py792 # Check if request was successfulCOMMENT
Modern AI Meta-Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUM…-platform/opencti-graphql/src/http/httpChatbotProxy.ts458// The user's agentic quota for the composer's quota indicator. XTM OneCOMMENT
MEDIUMdocs/docs/development/integration-manager.md144│ └── orchestrator/ # Container orchestrationCODE
MEDIUMdocs/docs/deployment/integration-manager/quick-start.md59## Step 3: Choose your orchestration platformCOMMENT
Cross-Language Confusion (JS/TS)1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…i-platform/opencti-graphql/src/utils/exclusionLists.ts90 // If element is present at mid, return TrueCOMMENT
Slop Phrases3 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUM…modules/playbook/components/ai-agent-component-test.ts284 const agentResponse = `Sure, here you go: ${bundleJson} let me know if you need anything else.`;CODE
LOW…ql/src/modules/fintelTemplate/fintelTemplate-domain.ts44// (don't forget to check the capa if it's not done via a @auth in graphql of your function)COMMENT
LOW…ti-platform/opencti-front/src/utils/resizeObservers.ts5 * Don't forget to stop observing when not needed anymore.COMMENT
Modern Structural Boilerplate5 hits · 3 pts
SeverityFileLineSnippetContext
LOWclient-python/pycti/__init__.py109__all__ = [CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py1205 def set_heartbeat_queue(self, q: Queue) -> None:CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py1308 def set_heartbeat_queue(self, q: Queue) -> None:CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py1562 def set_heartbeat_queue(self, q: Queue) -> None:CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py3027 def set_state(self, state) -> None:STRING
AI Structural Patterns3 hits · 2 pts
SeverityFileLineSnippetContext
LOW…ent-python/pycti/connector/opencti_connector_helper.py1906CODE
LOW…ent-python/pycti/connector/opencti_connector_helper.py3431CODE
LOWclient-python/pycti/api/opencti_api_client.py190CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…latform/opencti-graphql/tests/utils/XTMComposerMock.ts761// Example usageCOMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…encti-graphql/src/python/runtime/snort/snort_parser.py417 # TODO: implement this featureCOMMENT