AI Slop Code RIsk Monitor

peass-ng/PEASS-ng

PEASS - Privilege Escalation Awesome Scripts SUITE (with colors)

9.6 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for peass-ng/PEASS-ng, a C# project with 20,645 GitHub stars. SynthScan examined 352,934 lines of code across 1843 source files, recording 3133 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 9.6 (Moderate 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.

9.6
Adjusted Signal
9.6
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
20.6K
Stars
C#
Language
352.9K
Lines of Code
1.8K
Files
3.1K
Pattern Hits
2026-10-12
Scan Date
0.02
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 35.1/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 3.6/100 · LOW

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

Agent Over-Engineering Ratio 14.2/100 · LOW

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

PR Review Velocity Impact 38.4/100 · MEDIUM

Which changes need focused human review? 3133 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 6HIGH 36MEDIUM 29LOW 3062

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 3133 distinct pattern matches across 16 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.

Over-Commented Block2119 hits · 1926 pts
SeverityFileLineSnippetContext
LOWlinPEAS/builder/README.md41```COMMENT
LOW…nPEAS/builder/linpeas_parts/2_container/6_LXD_group.sh1# Title: Container - LXD group root-equivalent accessCOMMENT
LOW…der/linpeas_parts/2_container/2_List_mounted_tokens.sh1# Title: Container - List mounted tokensCOMMENT
LOW…r/linpeas_parts/2_container/7_RW_bind_mounts_nosuid.sh1# Title: Container - Possible shared writable mounts (SUID conditions)COMMENT
LOW…inpeas_parts/2_container/4_Docker_container_details.sh1# Title: Container - Docker Container detailsCOMMENT
LOW…ilder/linpeas_parts/2_container/3_Container_details.sh1# Title: Container - Container detailsCOMMENT
LOW…builder/linpeas_parts/2_container/1_Container_tools.sh1# Title: Container - Container ToolsCOMMENT
LOW…builder/linpeas_parts/2_container/1_Container_tools.sh21# - Privileged tool exploitationCOMMENT
LOW…der/linpeas_parts/2_container/6_Kubernetes_surfaces.sh1# Title: Container - Kubernetes surfacesCOMMENT
LOW…lder/linpeas_parts/2_container/5_Container_breakout.sh1# Title: Container - Container & breakout enumerationCOMMENT
LOW…npeas_parts/7_software_information/Browser_profiles.sh1# Title: Software Information - Browser ProfilesCOMMENT
LOW…as_parts/7_software_information/Below_Log_Directory.sh1# Title: Software Information - Below log directoryCOMMENT
LOW…AS/builder/linpeas_parts/7_software_information/Omi.sh1# Title: Software Information - OMI management listenerCOMMENT
LOW…ilder/linpeas_parts/7_software_information/Logstash.sh1# Title: Software Information - LogstashCOMMENT
LOW…builder/linpeas_parts/7_software_information/Consul.sh1# Title: Software Information - Consul agent script checksCOMMENT
LOW…S/builder/linpeas_parts/7_software_information/Pamd.sh1# Title: Software Information - Pam.dCOMMENT
LOW…r/linpeas_parts/7_software_information/Apache_nginx.sh1# Title: Software Information - Apache-NginxCOMMENT
LOW…ilder/linpeas_parts/7_software_information/Kerberos.sh1# Title: Software Information - KerberosCOMMENT
LOW…r/linpeas_parts/7_software_information/PHP_Sessions.sh1# Title: Software Information - PHP SessionsCOMMENT
LOW…peas_parts/7_software_information/1_Useful_software.sh1# Title: Software Information - Useful SoftwareCOMMENT
LOW…er/linpeas_parts/7_software_information/2_Compilers.sh1# Title: Software Information - CompilersCOMMENT
LOW…npeas_parts/7_software_information/Cached_AD_hashes.sh1# Title: Software Information - Cached AD HashesCOMMENT
LOW…lder/linpeas_parts/7_software_information/Vault_ssh.sh1# Title: Software Information - Vault-sshCOMMENT
LOW…der/linpeas_parts/7_software_information/Kcpassword.sh1# Title: Software Information - kcpasswordCOMMENT
LOW…AS/builder/linpeas_parts/7_software_information/Ssh.sh1# Title: Software Information - ssh filesCOMMENT
LOW…builder/linpeas_parts/7_software_information/Splunk.sh1# Title: Software Information - SplunkCOMMENT
LOW…lder/linpeas_parts/7_software_information/Log4shell.sh1# Title: Software Information - Searching Log4Shell vulnerable librariesCOMMENT
LOW…/builder/linpeas_parts/7_software_information/Mysql.sh1# Title: Software Information - MysqlCOMMENT
LOW…S/builder/linpeas_parts/7_software_information/Gogs.sh1# Title: Software Information - Gogs privileged file writesCOMMENT
LOW…uilder/linpeas_parts/7_software_information/FreeIPA.sh1# Title: Software Information - FreeIPACOMMENT
LOW…ilder/linpeas_parts/7_software_information/Awsvault.sh1# Title: Software Information - Check aws-vaultCOMMENT
LOW…der/linpeas_parts/7_software_information/Postgresql.sh1# Title: Software Information - PostgreSQLCOMMENT
LOW…s_parts/7_software_information/Motion_Configuration.sh1# Title: Software Information - Motion configurationCOMMENT
LOW…arts/7_software_information/PackageKit_Pack2TheRoot.sh1# Title: Software Information - PackageKit Pack2TheRoot (CVE-2026-41651)COMMENT
LOW…linpeas_parts/7_software_information/Extra_software.sh1# Title: Software Information - Extra sotftareCOMMENT
LOW…der/linpeas_parts/7_software_information/Containerd.sh1# Title: Software Information - containerd installedCOMMENT
LOW…inpeas_parts/7_software_information/Screen_sessions.sh1# Title: Software Information - Screen sessionsCOMMENT
LOW…uilder/linpeas_parts/7_software_information/YubiKey.sh1# Title: Software Information - YubiKey athenticationCOMMENT
LOW…S/builder/linpeas_parts/7_software_information/Tmux.sh1# Title: Software Information - TmuxCOMMENT
LOW…S/builder/linpeas_parts/7_software_information/Runc.sh1# Title: Software Information - RuncCOMMENT
LOW…builder/linpeas_parts/7_software_information/Gitlab.sh1# Title: Software Information - GitlabCOMMENT
LOW…uilder/linpeas_parts/7_software_information/PGP_GPG.sh1# Title: Software Information - PGP-GPGCOMMENT
LOW…uilder/linpeas_parts/7_software_information/Dovecot.sh1# Title: Software Information - DovecotCOMMENT
LOW…builder/linpeas_parts/7_software_information/Docker.sh1# Title: Software Information - DockerCOMMENT
LOW…S/builder/linpeas_parts/7_software_information/SKey.sh1# Title: Software Information - S/Key athenticationCOMMENT
LOW…ts/7_software_information/Postgresql_Event_Triggers.sh1# Title: Software Information - PostgreSQL Event TriggersCOMMENT
LOW…oftware_information/3_Macos_writable_installed_apps.sh1# Title: Software Information - MacOS writable Installed ApplicationsCOMMENT
LOW…cs_crons_timers_srvcs_sockets/17_Deleted_open_files.sh1# Title: Processes & Cron & Services & Timers - Deleted open filesCOMMENT
LOW…_crons_timers_srvcs_sockets/16_Crontab_UI_misconfig.sh1# Title: Processes & Cron & Services & Timers - Crontab UI (root) MisconfigurationCOMMENT
LOW…4_procs_crons_timers_srvcs_sockets/1_List_processes.sh1# Title: Processes & Cron & Services & Timers - List processesCOMMENT
LOW…procs_crons_timers_srvcs_sockets/15_Rcommands_trust.sh1# Title: Processes & Cron & Services & Timers - Legacy r-commands and host-based trustCOMMENT
LOW…4_procs_crons_timers_srvcs_sockets/14_DBus_analysis.sh1# Title: Processes & Cron & Services & Timers - D-Bus AnalysisCOMMENT
LOW…/4_procs_crons_timers_srvcs_sockets/12_Socket_files.sh1# Title: Processes & Cron & Services & Timers - Socket Files AnalysisCOMMENT
LOW…rons_timers_srvcs_sockets/13_Unix_sockets_listening.sh1# Title: Processes & Cron & Services & Timers - Unix Sockets AnalysisCOMMENT
LOW…ts/4_procs_crons_timers_srvcs_sockets/18_Xvfb_fbdir.sh1# Title: Processes & Cron & Services & Timers - Cross-user Xvfb framebuffer filesCOMMENT
LOW…_crons_timers_srvcs_sockets/18_Macos_updater_toctou.sh1# Title: Processes & Cron & Services & Timers - macOS privileged updater TOCTOU candidatesCOMMENT
LOW…arts/4_procs_crons_timers_srvcs_sockets/10_Services.sh1# Title: Processes & Cron & Services & Timers - Services and Service FilesCOMMENT
LOW…imers_srvcs_sockets/5_Files_open_process_other_user.sh1# Title: Processes & Cron & Services & Timers - Files opened by processes belonging to other usersCOMMENT
LOW…cs_crons_timers_srvcs_sockets/19_Erlang_ssh_daemons.sh1# Title: Processes & Cron & Services & Timers - Erlang SSH daemonsCOMMENT
LOW…_timers_srvcs_sockets/8_Macos_launch_agents_daemons.sh1# Title: Processes & Cron & Services & Timers - Third party LaunchAgents & LaunchDemonsCOMMENT
2059 more matches not shown…
Hyper-Verbose Identifiers840 hits · 971 pts
SeverityFileLineSnippetContext
LOWlinPEAS/tests/test_container_rw_mounts.py30 def test_mountinfo_fields_and_constraints(self):CODE
LOWlinPEAS/tests/test_container_rw_mounts.py69 def test_uid_mapping_is_cautious(self):CODE
LOWlinPEAS/tests/test_container_rw_mounts.py77 def test_proc_mounts_fallback_is_generic(self):CODE
LOWlinPEAS/tests/test_sudo_relative_cwd.py53 def test_exact_root_policy_and_direct_relative_call(self):CODE
LOWlinPEAS/tests/test_sudo_relative_cwd.py62 def test_requires_shell_source_and_unrestricted_effective_policy(self):CODE
LOWlinPEAS/tests/test_sudo_relative_cwd.py79 def test_rejects_directory_changes_and_noncommand_mentions(self):CODE
LOWlinPEAS/tests/test_sudo_relative_cwd.py91 def test_deduplicates_and_parses(self):CODE
LOWlinPEAS/tests/test_sudo_relative_cwd.py98 def test_root_sudo_shell_cp_glob_is_conditional_candidate(self):CODE
LOWlinPEAS/tests/test_sudo_relative_cwd.py111 def test_cp_glob_requires_exact_policy_plain_glob_and_caller_cwd(self):CODE
LOWlinPEAS/tests/test_sudo_relative_cwd.py137 def test_python_literal_helper_under_exact_interpreter_rule(self):CODE
LOWlinPEAS/tests/test_sudo_relative_cwd.py172 def test_python_cue_requires_call_and_no_fixed_cwd(self):CODE
LOWlinPEAS/tests/test_sudo_relative_cwd.py188 def test_ruby_relative_yaml_under_exact_root_rule(self):CODE
LOWlinPEAS/tests/test_sudo_relative_cwd.py222 def test_go_wasm_gate_and_relative_shell_under_exact_root_rule(self):CODE
LOW⚡linPEAS/tests/test_sudo_terraform_override.py84 def test_matching_writable_override_is_review_candidate(self):CODE
LOW⚡linPEAS/tests/test_sudo_terraform_override.py90 def test_missing_or_nonroot_grant_and_other_subcommand(self):CODE
LOW⚡linPEAS/tests/test_sudo_terraform_override.py98 def test_environment_and_source_mismatch(self):CODE
LOW⚡linPEAS/tests/test_sudo_terraform_override.py108 def test_bounded_config_and_provider_access(self):CODE
LOW⚡linPEAS/tests/test_sudo_terraform_override.py113 def test_symlinked_parent_paths_are_suppressed(self):CODE
LOW⚡linPEAS/tests/test_sudo_terraform_override.py118 def test_yaml_lists_cli_config_without_dumping_contents(self):CODE
LOWlinPEAS/tests/test_sudo_git_clamscan_highlight.py22 def test_exact_command_and_anchored_sudoers_forms(self):CODE
LOWlinPEAS/tests/test_sudo_git_clamscan_highlight.py33 def test_lookalikes_negations_and_other_options(self):CODE
LOWlinPEAS/tests/test_sudo_git_clamscan_highlight.py48 def test_variable_module_shell_syntax(self):CODE
LOWlinPEAS/tests/test_suse_pam_libblockdev.py72 def test_suse_ssh_pam_path_reports_evidence_and_unknown_patch_status(self):CODE
LOW⚡linPEAS/tests/test_suse_pam_libblockdev.py84 def test_disabled_user_environment_or_non_suse_is_suppressed(self):CODE
LOW⚡linPEAS/tests/test_suse_pam_libblockdev.py92 def test_pam_path_requires_session_module(self):CODE
LOW⚡linPEAS/tests/test_suse_pam_libblockdev.py100 def test_pam_patched_or_unknown_implicit_default_is_suppressed(self):CODE
LOW⚡linPEAS/tests/test_suse_pam_libblockdev.py108 def test_explicit_setting_remains_a_candidate_after_pam_update(self):CODE
LOW⚡linPEAS/tests/test_suse_pam_libblockdev.py115 def test_stale_auth_stack_with_old_pam_is_reported_after_config_update(self):CODE
LOW⚡linPEAS/tests/test_suse_pam_libblockdev.py122 def test_leap_implicit_environment_with_both_old_packages_is_reported(self):CODE
LOWlinPEAS/tests/test_suse_pam_libblockdev.py152 def test_libblockdev_path_reports_passive_evidence(self):CODE
LOW⚡linPEAS/tests/test_suse_pam_libblockdev.py163 def test_libblockdev_path_requires_active_policy_and_xfs_tool(self):CODE
LOW⚡linPEAS/tests/test_suse_pam_libblockdev.py173 def test_libblockdev_patched_and_unknown_packages_are_suppressed(self):CODE
LOW⚡linPEAS/tests/test_suse_pam_libblockdev.py181 def test_generic_non_suse_package_does_not_get_a_cve_finding(self):CODE
LOWlinPEAS/tests/test_minikube_crio_log_probe.py35 def test_reports_only_bounded_historical_version(self):CODE
LOWlinPEAS/tests/test_minikube_crio_log_probe.py46 def test_rejects_links_and_nonregular_files(self):CODE
LOWlinPEAS/tests/test_minikube_crio_log_probe.py71 def test_caps_homes_bytes_and_lines(self):CODE
LOWlinPEAS/tests/test_minikube_crio_log_probe.py84 def test_rejects_unvalidated_versions(self):CODE
LOW⚡linPEAS/tests/test_cifswitch.py77 def test_complete_vulnerable_chain_is_reported_without_executing_helper(self):CODE
LOW⚡linPEAS/tests/test_cifswitch.py87 def test_backported_patch_marker_suppresses_finding(self):CODE
LOW⚡linPEAS/tests/test_cifswitch.py95 def test_fixed_upstream_stable_version_suppresses_finding(self):CODE
LOW⚡linPEAS/tests/test_cifswitch.py103 def test_upstream_fixed_version_boundaries(self):CODE
LOWlinPEAS/tests/test_cifswitch.py144 def test_inactive_upcall_rule_suppresses_finding(self):CODE
LOWlinPEAS/tests/test_cifswitch.py152 def test_unloaded_cifs_module_suppresses_finding(self):CODE
LOWlinPEAS/tests/test_sudo_bee_backdrop.py63 def test_root_grant_reports_once_without_executing_bee(self):CODE
LOWlinPEAS/tests/test_sudo_bee_backdrop.py76 def test_restricted_nonroot_negated_and_other_binary_are_not_candidates(self):CODE
LOWlinPEAS/tests/test_sudo_bee_backdrop.py96 def test_policy_limits_suppress_ambiguous_results(self):CODE
LOWlinPEAS/tests/test_sudo_bee_backdrop.py101 def test_backdrop_selector_is_path_only_and_preserves_drupal(self):CODE
LOWlinPEAS/tests/test_sysv_shared_memory.py48 def test_linux_numeric_modes_select_other_writable_root_only(self):CODE
LOWlinPEAS/tests/test_sysv_shared_memory.py62 def test_bsd_symbolic_modes_select_other_writable_root_only(self):CODE
LOW⚡linPEAS/tests/test_sysv_shared_memory.py75 def test_empty_or_unrecognized_output_is_quiet(self):CODE
LOW⚡linPEAS/tests/test_sysv_shared_memory.py79 def test_offline_filesystem_search_skips_ipc(self):CODE
LOW⚡linPEAS/tests/test_sysv_shared_memory.py89 def test_candidate_limit_is_explicit(self):CODE
LOW⚡linPEAS/tests/test_sysv_shared_memory.py97 def test_input_line_limit_is_explicit(self):CODE
LOWlinPEAS/tests/test_dirty_pipe_registry.py36 def test_disjoint_upstream_fixed_boundaries(self):STRING
LOWlinPEAS/tests/test_roundcube_sensitive_files.py29 def test_four_keys_are_bounded_and_values_redacted(self):CODE
LOWlinPEAS/tests/test_roundcube_sensitive_files.py50 def test_generic_php_and_absent_config_have_no_output(self):CODE
LOWlinPEAS/tests/test_roundcube_sensitive_files.py54 def test_builder_emits_selector_in_existing_roundcube_section(self):CODE
LOWlinPEAS/tests/test_systemd_environment_files.py32 def test_oversized_unit_is_not_scanned(self):CODE
LOWlinPEAS/tests/test_systemd_environment_files.py43 def test_quoted_optional_path_reports_keys_without_values(self):CODE
LOWlinPEAS/tests/test_systemd_environment_files.py72 def test_optional_prefix_inside_quotes_is_supported(self):CODE
780 more matches not shown…
Cross-Language Confusion29 hits · 159 pts
SeverityFileLineSnippetContext
HIGHlinPEAS/tests/test_cifswitch.py125 f"echo {version}=yes || echo {version}=no"CODE
HIGHlinPEAS/tests/test_diagspill.py188 f"echo {version}=yes || echo {version}=no"CODE
HIGHlinPEAS/tests/test_password_scan_bounds.py44 ["/bin/sh", "-c", "command -v timeout || command -v gtimeout"],CODE
HIGHlinPEAS/tests/test_snap_confine.py127 f"echo {version}=yes || echo {version}=no"CODE
HIGH⚡linPEAS/tests/test_php_mysqli_candidates.py60 'new mysqli("h", "u", null);\n'CODE
HIGH⚡linPEAS/tests/test_doas.py46doas_version_lt 6.8 6.8.1 && echo lt=yesSTRING
HIGH⚡linPEAS/tests/test_doas.py47doas_version_ge 6.8.1 6.8.1 && echo ge=yesSTRING
HIGH⚡linPEAS/tests/test_doas.py48doas_version_le 6.8.2 6.8.2 && echo le=yesSTRING
HIGH⚡linPEAS/tests/test_doas.py49! doas_version_lt 6.9 6.8.1 && echo newer=yesSTRING
HIGHlinPEAS/tests/test_doas.py73doas_rule_has_option "$rule" nopass && echo nopass=yesSTRING
HIGH⚡linPEAS/tests/test_doas.py95doas_rule_has_option "$rule" setenv && echo setenv=yesSTRING
HIGH⚡linPEAS/tests/test_needrestart.py166 "lp_version_lt 3.7 3.8 && echo old=yes",CODE
HIGH⚡linPEAS/tests/test_needrestart.py167 "lp_version_lt 3.10 3.8 || echo new=yes",CODE
HIGHlinPEAS/tests/test_builder.py224 f'source "{base_file}" >/dev/null 2>&1 || true; 'CODE
HIGH⚡linPEAS/tests/test_kubernetes_surfaces.py70 result = self.run_shell('containerType=No; k8s_context_present && echo found', env=env)CODE
HIGH⚡linPEAS/tests/test_kubernetes_surfaces.py457 "k8s_kubectl config current-context || echo bounded", env=envCODE
HIGH⚡linPEAS/tests/test_kubernetes_surfaces.py466 'k8s_kubectl config current-context || echo skipped'CODE
HIGH⚡linPEAS/tests/test_kubernetes_surfaces.py474 'done; k8s_cap_has 0000000000000000 21 || echo "21 absent"'CODE
HIGHlinPEAS/tests/test_kubernetes_surfaces.py329 'k8s_direct_token=SENSITIVE_TOKEN_VALUE; k8s_direct_ca=/dev/null; 'CODE
HIGHlinPEAS/tests/test_sudo_npbackup_config.py52 "n=$(cat \"$FAKE_DATE_STATE\" 2>/dev/null || echo 0)\n"CODE
HIGHlinPEAS/tests/test_pg_basebackup_boundary.py48 "pgbb_metadata() { case \"$1\" in \"$PG_TEST_ROOT\"/cron.d/*|\"$PG_TEST_ROOT\"/backup-wrapper|\"$PG_TESTCODE
HIGHlinPEAS/tests/test_pg_basebackup_boundary.py48 "pgbb_metadata() { case \"$1\" in \"$PG_TEST_ROOT\"/cron.d/*|\"$PG_TEST_ROOT\"/backup-wrapper|\"$PG_TESTCODE
HIGH⚡linPEAS/tests/test_udisks.py171 "lp_version_lt 2.10.91 2.11.2 && echo old=yes",CODE
HIGH⚡linPEAS/tests/test_udisks.py172 "lp_version_lt 2.11.10 2.11.2 || echo new=yes",CODE
HIGHlinPEAS/tests/test_writable_scan_pruning.py49 '. "$1" >/dev/null 2>/dev/null; 'CODE
HIGHlinPEAS/builder/src/linpeasBuilder.py210 calls.extend(f'{var}=$(cat "$FIND_CACHE_DIR/{var}" 2>/dev/null)' for var in variables)CODE
HIGHlinPEAS/builder/src/linpeasBuilder.py350 os.system(f"cd /tmp; tar -xvzf /tmp/bin_builder 2> /dev/null; rm /tmp/bin_builder; mv {tar_gz} /tmp/bin_builCODE
HIGHwinPEAS/winPEASps1/test_gmsa_reader_bounds.py84 "$tokens=$null; $errors=$null; "CODE
HIGHparsers/tests/test_json2html.py21 "clean_text": "[-] /usr/bin/echo && chmod 2>/dev/null",CODE
Hallucination Indicators6 hits · 90 pts
SeverityFileLineSnippetContext
CRITICAL…PEASexe/winPEAS/TaskScheduler/JetBrains.Annotations.cs624 /// <c>System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper, String)</c>.COMMENT
CRITICAL…PEASexe/winPEAS/TaskScheduler/JetBrains.Annotations.cs642 /// <c>System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper, String)</c>.COMMENT
CRITICAL…PEASexe/winPEAS/TaskScheduler/JetBrains.Annotations.cs661 /// <c>System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper, String, String)</c>.COMMENT
CRITICAL…PEASexe/winPEAS/TaskScheduler/JetBrains.Annotations.cs694 /// <c>System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper, String)</c>.COMMENT
CRITICAL…PEASexe/winPEAS/TaskScheduler/JetBrains.Annotations.cs708 /// <c>System.Web.Mvc.Html.DisplayExtensions.DisplayForModel(HtmlHelper, String)</c>.COMMENT
CRITICAL…PEASexe/winPEAS/TaskScheduler/JetBrains.Annotations.cs716 /// <c>System.Web.Mvc.Html.EditorExtensions.EditorForModel(HtmlHelper, String)</c>.COMMENT
Redundant / Tautological Comments48 hits · 71 pts
SeverityFileLineSnippetContext
LOW…4_procs_crons_timers_srvcs_sockets/1_List_processes.sh182 # Check if we can access the FD but not the target fileCOMMENT
LOW…/4_procs_crons_timers_srvcs_sockets/12_Socket_files.sh39 # Check if socket file is writable (following symlinks)COMMENT
LOW…/4_procs_crons_timers_srvcs_sockets/12_Socket_files.sh59 # Check if executable is writable (following symlinks)COMMENT
LOW…/4_procs_crons_timers_srvcs_sockets/12_Socket_files.sh89 # Check if listener path is writable (following symlinks)COMMENT
LOW…arts/4_procs_crons_timers_srvcs_sockets/10_Services.sh74 # Check if service runs with elevated privilegesCOMMENT
LOW…arts/4_procs_crons_timers_srvcs_sockets/10_Services.sh125 # Check if service file is writable (following symlinks)COMMENT
LOW…_timers_srvcs_sockets/8_Macos_launch_agents_daemons.sh80 # Check if plist is writableCOMMENT
LOW…_timers_srvcs_sockets/8_Macos_launch_agents_daemons.sh92 # Check if program is writableCOMMENT
LOW…/4_procs_crons_timers_srvcs_sockets/9_System_timers.sh47 # Check if the service runs with elevated privilegesCOMMENT
LOW…/4_procs_crons_timers_srvcs_sockets/9_System_timers.sh193 # Check if timer file is writable (following symlinks)COMMENT
LOW…/4_procs_crons_timers_srvcs_sockets/9_System_timers.sh253 # Check if timer file is writableCOMMENT
LOW…arts/4_procs_crons_timers_srvcs_sockets/7_Cron_jobs.sh703 # Check if it's a regular fileCOMMENT
LOW…arts/4_procs_crons_timers_srvcs_sockets/7_Cron_jobs.sh706 # Check if it's writable and executableCOMMENT
LOW…arts/4_procs_crons_timers_srvcs_sockets/7_Cron_jobs.sh814 # # Check if the file is writableCOMMENT
LOW…crons_timers_srvcs_sockets/3_Process_binaries_perms.sh31 # Check if binary is writableCOMMENT
LOW…imers_srvcs_sockets/4_Processes_PPID_different_user.sh55 # Check if users are different and PPID user is not rootCOMMENT
LOW…der/linpeas_parts/linpeas_base/1_check_network_jobs.sh89 #Check if IP and Netmask are correct and the use nc to find hosts. By default check ports: 22 80 443 445 3389COMMENT
LOW…der/linpeas_parts/linpeas_base/1_check_network_jobs.sh158 #Check if IP and Netmask are correct and the use fping or ping to find hostsCOMMENT
LOW…der/linpeas_parts/linpeas_base/1_check_network_jobs.sh249 #Check if LOCAL_PORT is a numberCOMMENT
LOW…der/linpeas_parts/linpeas_base/1_check_network_jobs.sh254 #Check if REMOTE_PORT is a numberCOMMENT
LOW…lder/linpeas_parts/8_interesting_perms_files/1_SUID.sh141 if [ ${#sline_first} -gt 2 ] && command -v "$sline_first" 2>/dev/null | grep -q '/' && echo "$sline_fiCODE
LOW…lder/linpeas_parts/8_interesting_perms_files/2_SGID.sh63 if [ ${#sline_first} -gt 2 ] && command -v "$sline_first" 2>/dev/null | grep -q '/'; then #Check if exCODE
LOW…der/linpeas_parts/5_network_information/9_Inetdconf.sh99 # Check if inetd is installedCOMMENT
LOW…der/linpeas_parts/5_network_information/9_Inetdconf.sh109 # Check if inetd is runningCOMMENT
LOW…der/linpeas_parts/5_network_information/9_Inetdconf.sh148 # Check if xinetd is installedCOMMENT
LOW…der/linpeas_parts/5_network_information/9_Inetdconf.sh154 # Check if xinetd is runningCOMMENT
LOW…der/linpeas_parts/5_network_information/9_Inetdconf.sh183 # Check if service is enabledCOMMENT
LOW…lder/linpeas_parts/5_network_information/8_Iptables.sh31 # Check if iptables is availableCOMMENT
LOW…lder/linpeas_parts/5_network_information/8_Iptables.sh37 # Check if we have permission to list rulesCOMMENT
LOW…lder/linpeas_parts/5_network_information/8_Iptables.sh74 # Check if nft is availableCOMMENT
LOW…lder/linpeas_parts/5_network_information/8_Iptables.sh80 # Check if we have permission to list rulesCOMMENT
LOW…lder/linpeas_parts/5_network_information/8_Iptables.sh110 # Check if firewall-cmd is availableCOMMENT
LOW…lder/linpeas_parts/5_network_information/8_Iptables.sh116 # Check if firewalld is runningCOMMENT
LOW…lder/linpeas_parts/5_network_information/8_Iptables.sh150 # Check if ufw is availableCOMMENT
LOW…lder/linpeas_parts/5_network_information/8_Iptables.sh156 # Check if UFW is runningCOMMENT
LOWlinPEAS/builder/src/linpeasModule.py177 # Check if the indicated dependencies are actually being usedCOMMENT
LOWlinPEAS/builder/src/linpeasModule.py199 # Check if all variables are correctly definedCOMMENT
LOWlinPEAS/builder/src/linpeasModule.py231 # Check if other object is an instance of LinpeasModuleCOMMENT
LOWlinPEAS/builder/src/linpeasModule.py252 # Check if item is already a LinpeasModule object.COMMENT
LOWlinPEAS/builder/src/linpeasBaseBuilder.py156 sorted_funcs.index(d_func) # Check if it's thereCODE
LOWlinPEAS/builder/src/linpeasBaseBuilder.py195 sorted_vars.index(d_var) # Check if it's thereCODE
LOW…/winPEASexe/winPEAS/Info/WindowsCreds/AppCmd/AppCmd.cs8 # Check if appcmd.exe existsCOMMENT
LOW…/winPEASexe/winPEAS/Info/WindowsCreds/AppCmd/AppCmd.cs34 # Check if credentials existsCOMMENT
LOW⚡…/winPEASexe/winPEAS/Info/WindowsCreds/AppCmd/AppCmd.cs55 # Check if credentials existsCOMMENT
LOW⚡…/winPEASexe/winPEAS/Info/WindowsCreds/AppCmd/AppCmd.cs62 # Check if any passwords were foundCOMMENT
LOW⚡…/winPEASexe/winPEAS/Info/WindowsCreds/AppCmd/AppCmd.cs64 # Display results in list view that can feed into the pipelineCOMMENT
LOWbuild_lists/sensitive_files.yaml124 check_extra_path: "" # Check if found files are in a specific path (linpeas; opt-in selectors on winpeas)CODE
LOW.github/workflows/artifacts_cleanup.yml14 expire-in: 1days # Set this to 0 to delete all artifactsCODE
Decorative Section Separators16 hits · 48 pts
SeverityFileLineSnippetContext
MEDIUM…ASexe/winPEAS/Info/NetworkInfo/InternetConnectivity.cs10 // ───────────────────────────────────────────────────────────────COMMENT
MEDIUM…ASexe/winPEAS/Info/NetworkInfo/InternetConnectivity.cs12 // ───────────────────────────────────────────────────────────────COMMENT
MEDIUM…ASexe/winPEAS/Info/NetworkInfo/InternetConnectivity.cs33 // ───────────────────────────────────────────────────────────────COMMENT
MEDIUM…ASexe/winPEAS/Info/NetworkInfo/InternetConnectivity.cs35 // ───────────────────────────────────────────────────────────────COMMENT
MEDIUM…ASexe/winPEAS/Info/NetworkInfo/InternetConnectivity.cs55 // ─── Helpers ───────────────────────────────────────────────COMMENT
MEDIUM…ASexe/winPEAS/Info/NetworkInfo/InternetConnectivity.cs159 // ─── Main entry ───────────────────────────────────────────COMMENT
MEDIUMscripts/add_mitre_tags.py13 # ─── Section 1: System Information ────────────────────────────────────────COMMENT
MEDIUMscripts/add_mitre_tags.py29 # ─── Section 2: Container ─────────────────────────────────────────────────COMMENT
MEDIUMscripts/add_mitre_tags.py36 # ─── Section 3: Cloud ─────────────────────────────────────────────────────COMMENT
MEDIUMscripts/add_mitre_tags.py51 # ─── Section 4: Processes / Crons / Timers / Services / Sockets ───────────COMMENT
MEDIUMscripts/add_mitre_tags.py69 # ─── Section 5: Network Information ───────────────────────────────────────COMMENT
MEDIUMscripts/add_mitre_tags.py81 # ─── Section 6: Users Information ─────────────────────────────────────────COMMENT
MEDIUMscripts/add_mitre_tags.py100 # ─── Section 7: Software Information ──────────────────────────────────────COMMENT
MEDIUMscripts/add_mitre_tags.py132 # ─── Section 8: Interesting Permissions / Files ────────────────────────────COMMENT
MEDIUMscripts/add_mitre_tags.py150 # ─── Section 9: Interesting Files ─────────────────────────────────────────COMMENT
MEDIUMscripts/add_mitre_tags.py180 # ─── Section 10: API Keys Regex ───────────────────────────────────────────COMMENT
Empty Error Handlers5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHlinPEAS/builder/linpeas_builder.py25except FileNotFoundError:CODE
HIGHlinPEAS/builder/src/linpeasBaseBuilder.py159except:CODE
HIGHlinPEAS/builder/src/linpeasBaseBuilder.py198except:CODE
HIGHbuild_lists/update_windows_version_defs.py219except ValueError:CODE
HIGHbuild_lists/update_windows_version_defs.py225except ValueError:CODE
Excessive Try-Catch Wrapping15 hits · 22 pts
SeverityFileLineSnippetContext
LOW…nPEAS/builder/linpeas_parts/functions/checkCopyFail.sh54except Exception:CODE
LOW…nPEAS/builder/linpeas_parts/functions/checkCopyFail.sh64except Exception:CODE
LOW…nPEAS/builder/linpeas_parts/functions/checkCopyFail.sh81except Exception:CODE
LOW…nPEAS/builder/linpeas_parts/functions/checkCopyFail.sh115 except Exception as e:CODE
LOW…nPEAS/builder/linpeas_parts/functions/checkCopyFail.sh154 except Exception:CODE
LOW⚡…nPEAS/builder/linpeas_parts/functions/checkCopyFail.sh208except Exception as e:CODE
LOW⚡…nPEAS/builder/linpeas_parts/functions/checkCopyFail.sh213 except Exception:CODE
LOW⚡…nPEAS/builder/linpeas_parts/functions/checkCopyFail.sh220 except Exception:CODE
LOW⚡…nPEAS/builder/linpeas_parts/functions/checkCopyFail.sh227 except Exception:CODE
LOW⚡…nPEAS/builder/linpeas_parts/functions/checkCopyFail.sh233 except Exception:CODE
MEDIUMparsers/json2pdf.py167 print("Error: Please pass the peas.json file and the path to save the pdf\njson2pdf.py <json_file> <pdf_file.pdfCODE
MEDIUMparsers/json2html.py374 print("Error: Please pass the peas.json file and the path to save the html\njson2html.py <json_file.json> <HTML_CODE
MEDIUMparsers/peas2json.py184 print("Error: Please pass the peas.out file and the path to save the json\npeas2json.py <output_file> <json_fileCODE
MEDIUMbuild_lists/download_regexes.py21 print("Error: Unable to download the regexes file.")CODE
LOW.github/workflows/chack-agent-pr-triage.yml338 except Exception:CODE
Deep Nesting20 hits · 20 pts
SeverityFileLineSnippetContext
LOWlinPEAS/tests/test_dirty_pipe_registry.py36CODE
LOWlinPEAS/tests/test_gtfobins_archive_builder.py116CODE
LOWlinPEAS/tests/test_ssh_control_sockets.py50CODE
LOWlinPEAS/tests/test_sudo_python_tar.py17CODE
LOWlinPEAS/builder/src/linpeasModule.py9CODE
LOWlinPEAS/builder/src/linpeasBuilder.py164CODE
LOWlinPEAS/builder/src/linpeasBuilder.py259CODE
LOWlinPEAS/builder/src/linpeasBuilder.py359CODE
LOWlinPEAS/builder/src/linpeasBuilder.py392CODE
LOWlinPEAS/builder/src/linpeasBaseBuilder.py29CODE
LOWlinPEAS/builder/src/linpeasBaseBuilder.py144CODE
LOWlinPEAS/builder/src/linpeasBaseBuilder.py183CODE
LOWwinPEAS/winPEASps1/test_lm_compatibility_policy.py13CODE
LOWparsers/json2pdf.py72CODE
LOWparsers/json2html.py9CODE
LOWparsers/peas2json.py48CODE
LOWparsers/peas2json.py104CODE
LOWbuild_lists/update_windows_version_defs.py167CODE
LOWbuild_lists/update_windows_version_defs.py410CODE
LOWbuild_lists/update_windows_version_defs.py579CODE
Self-Referential Comments4 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/CI-master_tests.yml497 # Create the releaseCOMMENT
MEDIUM⚡metasploit/peass.rb353 # Create a RijndaelManaged objectCOMMENT
MEDIUM⚡metasploit/peass.rb362 # Create an encryptor to perform the stream transform.COMMENT
MEDIUM⚡metasploit/peass.rb365 # Create the streams used for encryption.COMMENT
AI Structural Patterns16 hits · 16 pts
SeverityFileLineSnippetContext
LOWlinPEAS/tests/test_sudo_relative_cwd.py23CODE
LOWlinPEAS/tests/test_sudo_terraform_override.py17CODE
LOWlinPEAS/tests/test_sudo_python_local_import.py17CODE
LOWlinPEAS/tests/test_crio_pinns_suid.py14CODE
LOWlinPEAS/tests/test_sudo_gitpython_clone.py34CODE
LOWlinPEAS/tests/test_macos_updater_toctou.py28CODE
LOWlinPEAS/tests/test_sudo_python_bytecode_cache.py17CODE
LOWlinPEAS/tests/test_systemd_writable_dropins.py22CODE
LOWlinPEAS/tests/test_sudo_model_loader.py21CODE
LOWlinPEAS/tests/test_system_timers.py23CODE
LOWlinPEAS/tests/test_sudo_mktemp_dry_run.py27CODE
LOWlinPEAS/tests/test_sudo_setenv_pythonpath.py22CODE
LOWlinPEAS/tests/test_sudo_setenv_path.py22CODE
LOWlinPEAS/tests/test_sudo_ps2pdf_nosafer.py24CODE
LOWlinPEAS/tests/test_sudo_python_tar.py17CODE
LOWlinPEAS/builder/src/fileRecord.py4CODE
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…AS/winPEASexe/winPEAS/Properties/Resources.Designer.cs3// This code was generated by a tool.COMMENT
HIGH…PEASexe/winPEAS/3rdParty/AlphaFS/Resources.Designer.cs3// This code was generated by a tool.COMMENT
Unused Imports8 hits · 8 pts
SeverityFileLineSnippetContext
LOWlinPEAS/tests/test_sudo_gitpython_clone.py6CODE
LOWlinPEAS/tests/test_builder.py1CODE
LOWlinPEAS/tests/test_cups_retained_jobs.py3CODE
LOWlinPEAS/builder/linpeas_builder.py4CODE
LOWlinPEAS/builder/linpeas_builder.py4CODE
LOWparsers/json2pdf.py5CODE
LOWbuild_lists/update_windows_version_defs.py3CODE
LOWscripts/add_mitre_tags.py7CODE
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…esystem/Native Methods/NativeMethods.FileManagement.cs156 /// The default marshaling for bool is four bytes (to allow seamless integration with BOOL return values).COMMENT
MEDIUM…esystem/Native Methods/NativeMethods.FileManagement.cs175 /// The default marshaling for bool is four bytes (to allow seamless integration with BOOL return values).COMMENT
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMwinPEAS/winPEASexe/winPEAS/Checks/ApplicationsInfo.cs111 Beaprint.LinkPrint("https://book.hacktricks.wiki/en/windows-hardening/windows-local-privilege-escalationCODE
MEDIUMwinPEAS/winPEASexe/winPEAS/Checks/ServicesInfo.cs259 Beaprint.LinkPrint("https://book.hacktricks.wiki/en/windows-hardening/windows-local-privilege-escalationCODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…lder/linpeas_parts/functions/enumerateDockerSockets.sh5# Description: Search interesting container runtime, orchestration, and build sockets that could expose high-impact APIsCOMMENT