{"schema_version":"2","scorer_version":"0.1.0","scoring_version":"prov-4+qual-2+sec-2","generated_at":"2026-11-13T23:20:23.984978Z","repo":{"ref":{"host":"github.com","owner":"apenwarr","name":"sshuttle"},"default_branch":"master","clone_url":"https://github.com/apenwarr/sshuttle.git","html_url":"https://github.com/apenwarr/sshuttle","description":"Wrong project!  You should head over to http://github.com/sshuttle/sshuttle","stars":8847,"forks":610,"is_fork":false,"is_archived":false,"is_private":false,"size_kb":1143,"primary_language":"Python","license_spdx":"NOASSERTION","created_at":"2010-05-02T06:50:16Z","pushed_at":"2018-02-15T13:16:12Z","security_policy_url":null,"distribution":{"owner_created_at":"2008-08-13T21:13:59Z","owner_type":"User","release_assets":[]}},"commit_sha":"083293ea0dc2ebc77f282c2803720a2bb5f21a80","profile":{"lines_by_language":{"Python":5173},"files_by_category":{"source":20,"docs":17,"test":5,"other":4,"config":3,"generated":1},"source_lines":4039,"test_lines":1134},"pillars":{"ai_provenance":{"score":0.0,"confidence":0.65,"coverage":1.0,"label":"none-detected","breakdown":{"attributed_share":0.0,"suspected_share":0.0,"estimated_share":0.0,"ai_artifacts":0.0,"flagged_work_units":0.0,"flagged_releases":0.0},"summary":"No AI attribution or AI-consistent velocity signals detected."},"quality":{"score":56.6,"confidence":0.9,"coverage":1.0,"label":"weak","breakdown":{"complexity":50.4,"duplication":73.2,"lint":9.4,"testing":71.9,"docs":85.0,"type_safety":40.0,"process":null},"summary":"Code quality is weak: test-to-source ratio 0.28, CI runs tests; 23% of function code in complex or long functions; 5% duplicated lines. Weakest area: lint."},"security":{"score":70.2,"confidence":0.85,"coverage":1.0,"label":"adequate","breakdown":{"secrets":100.0,"sast":38.2,"dependencies":100.0,"ci_actions":null,"posture":0.0,"scorecard":null},"summary":"Security posture is adequate: 11 high-severity SAST findings. Weakest area: posture."}},"analyzer_results":[{"analyzer":"sec-scorecard","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":"no published OpenSSF Scorecard result for this repo"},{"analyzer":"sec-registry","pillar":"security","status":"ok","tool_version":null,"metrics":{"declared":1.0,"checked":1.0,"missing":0.0,"recent":0.0,"lookup_errors":0.0},"findings":[],"evidence":[],"data":{"phantom":false},"error":null},{"analyzer":"ai-attribution","pillar":"ai_provenance","status":"ok","tool_version":"signatures-v1","metrics":{"commits":391.0,"attributed_commits":0.0,"attributed_commit_share":0.0,"effective_loc":11919.0,"attributed_loc":0.0,"attributed_loc_share":0.0,"tools_detected":0.0},"findings":[],"evidence":[],"data":{"attributed_loc_by_commit":{},"tools":{},"monthly":{"2010-05":{"loc":2206,"attributed_loc":0},"2010-07":{"loc":49,"attributed_loc":0},"2010-09":{"loc":138,"attributed_loc":0},"2010-10":{"loc":1501,"attributed_loc":0},"2010-11":{"loc":79,"attributed_loc":0},"2010-12":{"loc":88,"attributed_loc":0},"2011-01":{"loc":1271,"attributed_loc":0},"2011-02":{"loc":214,"attributed_loc":0},"2011-03":{"loc":26,"attributed_loc":0},"2011-04":{"loc":44,"attributed_loc":0},"2011-05":{"loc":118,"attributed_loc":0},"2011-06":{"loc":231,"attributed_loc":0},"2011-07":{"loc":277,"attributed_loc":0},"2011-08":{"loc":327,"attributed_loc":0},"2012-01":{"loc":14,"attributed_loc":0},"2012-07":{"loc":2,"attributed_loc":0},"2012-10":{"loc":8,"attributed_loc":0},"2013-01":{"loc":34,"attributed_loc":0},"2014-09":{"loc":580,"attributed_loc":0},"2014-10":{"loc":1,"attributed_loc":0},"2014-11":{"loc":0,"attributed_loc":0},"2015-03":{"loc":318,"attributed_loc":0},"2015-04":{"loc":28,"attributed_loc":0},"2015-05":{"loc":3,"attributed_loc":0},"2015-06":{"loc":1,"attributed_loc":0},"2015-07":{"loc":1,"attributed_loc":0},"2015-09":{"loc":48,"attributed_loc":0},"2015-10":{"loc":0,"attributed_loc":0},"2015-11":{"loc":2645,"attributed_loc":0},"2015-12":{"loc":851,"attributed_loc":0},"2016-01":{"loc":412,"attributed_loc":0},"2016-03":{"loc":404,"attributed_loc":0}}},"error":null},{"analyzer":"ai-artifacts","pillar":"ai_provenance","status":"ok","tool_version":"signatures-v1","metrics":{"artifacts":0.0,"workflow_agents":0.0,"tools_configured":0.0},"findings":[],"evidence":[],"data":{"artifacts":[],"workflows":[],"tools":[]},"error":null},{"analyzer":"ai-velocity","pillar":"ai_provenance","status":"ok","tool_version":"prov-4","metrics":{"work_units":151.0,"flagged_units":0.0,"pre_ai_era_bursts":1.0,"pre_ai_era_measured_loc":11658.0,"pre_ai_era_burst_loc":1326.0,"measured_loc":11658.0,"flagged_loc":0.0,"flagged_loc_share":0.0,"max_loc_per_hour":859.1792656587472,"median_loc_per_hour":47.94317845516425,"pr_timed_units":0.0,"excluded_import_loc":0.0},"findings":[],"evidence":[],"data":{"flagged_loc_by_commit":{},"excluded_import_commits":[]},"error":null},{"analyzer":"ai-release-velocity","pillar":"ai_provenance","status":"ok","tool_version":"prov-4","metrics":{"releases":18.0,"flagged_releases":0.0,"max_loc_per_day":1010.0},"findings":[],"evidence":[],"data":{"releases":[{"from":"sshuttle-0.10","to":"sshuttle-0.11","loc":249,"days":2.66,"loc_per_day":93.4,"flagged":false},{"from":"sshuttle-0.11","to":"sshuttle-0.20","loc":212,"days":0.21,"loc_per_day":1010.0,"flagged":false},{"from":"sshuttle-0.20","to":"sshuttle-0.30","loc":597,"days":4.49,"loc_per_day":133.1,"flagged":false},{"from":"sshuttle-0.30","to":"sshuttle-0.31","loc":74,"days":67.12,"loc_per_day":1.1,"flagged":false},{"from":"sshuttle-0.31","to":"sshuttle-0.40","loc":151,"days":77.56,"loc_per_day":1.9,"flagged":false},{"from":"sshuttle-0.40","to":"sshuttle-0.41","loc":1455,"days":1.66,"loc_per_day":876.1,"flagged":false},{"from":"sshuttle-0.41","to":"sshuttle-0.42","loc":33,"days":14.11,"loc_per_day":2.3,"flagged":false},{"from":"sshuttle-0.42","to":"sshuttle-0.43","loc":103,"days":54.05,"loc_per_day":1.9,"flagged":false},{"from":"sshuttle-0.43","to":"sshuttle-0.43a","loc":6,"days":1.92,"loc_per_day":3.1,"flagged":false},{"from":"sshuttle-0.43a","to":"sshuttle-0.44","loc":282,"days":20.3,"loc_per_day":13.9,"flagged":false},{"from":"sshuttle-0.44","to":"sshuttle-0.44a","loc":11,"days":11.38,"loc_per_day":1.0,"flagged":false},{"from":"sshuttle-0.44a","to":"sshuttle-0.45","loc":682,"days":10.3,"loc_per_day":66.2,"flagged":false},{"from":"sshuttle-0.45","to":"sshuttle-0.50","loc":354,"days":3.53,"loc_per_day":100.3,"flagged":false},{"from":"sshuttle-0.50","to":"sshuttle-0.50a","loc":0,"days":0.25,"loc_per_day":0.0,"flagged":false},{"from":"sshuttle-0.50a","to":"sshuttle-0.51","loc":177,"days":9.44,"loc_per_day":18.8,"flagged":false},{"from":"sshuttle-0.51","to":"sshuttle-0.52","loc":50,"days":42.99,"loc_per_day":1.2,"flagged":false},{"from":"sshuttle-0.52","to":"sshuttle-0.53","loc":71,"days":44.65,"loc_per_day":1.6,"flagged":false},{"from":"sshuttle-0.53","to":"sshuttle-0.54","loc":89,"days":27.31,"loc_per_day":3.3,"flagged":false}]},"error":null},{"analyzer":"ai-stylometry","pillar":"ai_provenance","status":"ok","tool_version":null,"metrics":{"lines_scanned":4039.0,"index":0.248,"count:narrated_steps":1.0,"per_kloc:narrated_steps":0.248,"files:narrated_steps":1.0,"count:placeholder":0.0,"per_kloc:placeholder":0.0,"files:placeholder":0.0,"count:emoji_in_code":0.0,"per_kloc:emoji_in_code":0.0,"files:emoji_in_code":0.0,"count:assistant_voice":0.0,"per_kloc:assistant_voice":0.0,"files:assistant_voice":0.0},"findings":[],"evidence":[{"kind":"stylometry:narrated_steps","description":"step-by-step narration comment: # Now we wait until EOF or any other kind of exception.  We need","ref":"sshuttle/firewall.py:207","url":"https://github.com/apenwarr/sshuttle/blob/083293ea0dc2ebc77f282c2803720a2bb5f21a80/sshuttle/firewall.py#L207","weight":0.0}],"data":{},"error":null},{"analyzer":"sec-secrets","pillar":"security","status":"ok","tool_version":"gitleaks 8.30.1","metrics":{"secrets_current":0.0,"secrets_history":0.0,"secrets_nonprod":0.0,"secrets_low_confidence":0.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-sast","pillar":"security","status":"ok","tool_version":"opengrep 1.33.1; rules f1d2b562b414","metrics":{"findings":14.0,"findings_high":11.0,"findings_medium":2.0,"findings_low":1.0,"weighted_findings":11.1,"scanned_lines":4039.0,"parse_errors":0.0},"findings":[{"rule_id":"opengrep/python.lang.security.audit.dangerous-subprocess-use-audit","severity":"high","message":"Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low]","path":"sshuttle/client.py","line":202,"fingerprint":"python.lang.security.audit.dangerous-subprocess-use-audit:sshuttle/client.py:202"},{"rule_id":"opengrep/python.lang.security.audit.dangerous-subprocess-use-tainted-env-args","severity":"high","message":"Detected subprocess function 'Popen' with user controlled data. A malicious actor could leverage this to perform command injection. You may consider using 'shlex.quote()'. [confidence medium]","path":"sshuttle/client.py","line":202,"fingerprint":"python.lang.security.audit.dangerous-subprocess-use-tainted-env-args:sshuttle/client.py:202"},{"rule_id":"opengrep/python.lang.security.audit.dangerous-subprocess-use-audit","severity":"high","message":"Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low]","path":"sshuttle/hostwatch.py","line":124,"fingerprint":"python.lang.security.audit.dangerous-subprocess-use-audit:sshuttle/hostwatch.py:124"},{"rule_id":"opengrep/python.lang.security.audit.dangerous-subprocess-use-audit","severity":"high","message":"Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low]","path":"sshuttle/hostwatch.py","line":144,"fingerprint":"python.lang.security.audit.dangerous-subprocess-use-audit:sshuttle/hostwatch.py:144"},{"rule_id":"opengrep/python.lang.security.audit.dangerous-subprocess-use-audit","severity":"high","message":"Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low]","path":"sshuttle/hostwatch.py","line":201,"fingerprint":"python.lang.security.audit.dangerous-subprocess-use-audit:sshuttle/hostwatch.py:201"},{"rule_id":"opengrep/python.lang.security.audit.dangerous-subprocess-use-audit","severity":"high","message":"Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low]","path":"sshuttle/linux.py","line":21,"fingerprint":"python.lang.security.audit.dangerous-subprocess-use-audit:sshuttle/linux.py:21"},{"rule_id":"opengrep/python.lang.security.audit.dangerous-subprocess-use-audit","severity":"high","message":"Detected subprocess function 'call' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low]","path":"sshuttle/linux.py","line":38,"fingerprint":"python.lang.security.audit.dangerous-subprocess-use-audit:sshuttle/linux.py:38"},{"rule_id":"opengrep/python.lang.security.audit.dangerous-subprocess-use-audit","severity":"high","message":"Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low]","path":"sshuttle/methods/pf.py","line":329,"fingerprint":"python.lang.security.audit.dangerous-subprocess-use-audit:sshuttle/methods/pf.py:329"},{"rule_id":"opengrep/python.lang.security.audit.dangerous-subprocess-use-audit","severity":"high","message":"Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low]","path":"sshuttle/server.py","line":63,"fingerprint":"python.lang.security.audit.dangerous-subprocess-use-audit:sshuttle/server.py:63"},{"rule_id":"opengrep/python.lang.security.audit.dangerous-subprocess-use-audit","severity":"high","message":"Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low]","path":"sshuttle/ssh.py","line":124,"fingerprint":"python.lang.security.audit.dangerous-subprocess-use-audit:sshuttle/ssh.py:124"},{"rule_id":"opengrep/python.lang.security.audit.dangerous-subprocess-use-tainted-env-args","severity":"high","message":"Detected subprocess function 'Popen' with user controlled data. A malicious actor could leverage this to perform command injection. You may consider using 'shlex.quote()'. [confidence medium]","path":"sshuttle/ssh.py","line":124,"fingerprint":"python.lang.security.audit.dangerous-subprocess-use-tainted-env-args:sshuttle/ssh.py:124"},{"rule_id":"opengrep/python.lang.security.audit.exec-detected","severity":"medium","message":"Detected the use of exec(). exec() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources. [confidence low]","path":"sshuttle/assembler.py","line":23,"fingerprint":"python.lang.security.audit.exec-detected:sshuttle/assembler.py:23"},{"rule_id":"opengrep/python.lang.security.audit.non-literal-import","severity":"medium","message":"Untrusted user input in `importlib.import_module()` function allows an attacker to load arbitrary code. Avoid dynamic values in `importlib.import_module()` or use a whitelist to prevent running untrusted code. [confidence low]","path":"sshuttle/methods/__init__.py","line":92,"fingerprint":"python.lang.security.audit.non-literal-import:sshuttle/methods/__init__.py:92"},{"rule_id":"opengrep/python.lang.security.audit.network.avoid-bind-to-all-interfaces","severity":"low","message":"Running `socket.bind` to 0.0.0.0, or empty string could unexpectedly expose the server publicly as it binds to all available interfaces. Consider instead getting correct address from an environment variable or configuration file. [confidence high]","path":"sshuttle/stresstest.py","line":21,"fingerprint":"python.lang.security.audit.network.avoid-bind-to-all-interfaces:sshuttle/stresstest.py:21"}],"evidence":[],"data":{"rulesets":["python"]},"error":null},{"analyzer":"sec-deps","pillar":"security","status":"ok","tool_version":"osv-scanner version: 2.7.1","metrics":{"vulnerable_packages":0.0,"vulnerabilities":0.0,"vulns_critical":0.0,"vulns_high":0.0,"vulns_medium":0.0,"vulns_low":0.0,"vulns_unknown":0.0,"penalty":0.0},"findings":[],"evidence":[],"data":{"ecosystems":["PyPI"]},"error":null},{"analyzer":"sec-actions","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-posture","pillar":"security","status":"ok","tool_version":null,"metrics":{"check:security_policy":0.0,"check:dependency_updates":0.0,"check:signed_commits":0.0,"check:lockfiles":1.0,"signed_commit_share":0.0,"unpinned_manifests":0.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-distribution","pillar":"security","status":"ok","tool_version":null,"metrics":{"signals":0.0,"binary_assets":0.0,"suspicious":0.0},"findings":[],"evidence":[],"data":{"signals":[],"suspicious":false,"unusual_traction":false,"metadata":true},"error":null},{"analyzer":"qual-complexity","pillar":"quality","status":"ok","tool_version":"lizard 1.25.1","metrics":{"functions":223.0,"function_nloc":2816.0,"mean_ccn":3.97,"p90_ccn":8.0,"complex_functions":7.0,"long_functions":2.0,"many_param_functions":3.0,"risky_nloc_share":0.2287},"findings":[],"evidence":[{"kind":"complex-function","description":"main in sshuttle/client.py: complexity 57, 163 lines","ref":"sshuttle/client.py","url":"https://github.com/apenwarr/sshuttle/blob/083293ea0dc2ebc77f282c2803720a2bb5f21a80/sshuttle/client.py#L515","weight":0.95},{"kind":"complex-function","description":"main in sshuttle/firewall.py: complexity 52, 150 lines","ref":"sshuttle/firewall.py","url":"https://github.com/apenwarr/sshuttle/blob/083293ea0dc2ebc77f282c2803720a2bb5f21a80/sshuttle/firewall.py#L85","weight":0.8666666666666667},{"kind":"complex-function","description":"main in sshuttle/cmdline.py: complexity 34, 90 lines","ref":"sshuttle/cmdline.py","url":"https://github.com/apenwarr/sshuttle/blob/083293ea0dc2ebc77f282c2803720a2bb5f21a80/sshuttle/cmdline.py#L145","weight":0.5666666666666667},{"kind":"complex-function","description":"_main in sshuttle/client.py: complexity 20, 68 lines","ref":"sshuttle/client.py","url":"https://github.com/apenwarr/sshuttle/blob/083293ea0dc2ebc77f282c2803720a2bb5f21a80/sshuttle/client.py#L401","weight":0.3333333333333333},{"kind":"complex-function","description":"_gen_usage in sshuttle/options.py: complexity 19, 61 lines","ref":"sshuttle/options.py","url":"https://github.com/apenwarr/sshuttle/blob/083293ea0dc2ebc77f282c2803720a2bb5f21a80/sshuttle/options.py#L104","weight":0.31666666666666665},{"kind":"complex-function","description":"main in sshuttle/server.py: complexity 17, 67 lines","ref":"sshuttle/server.py","url":"https://github.com/apenwarr/sshuttle/blob/083293ea0dc2ebc77f282c2803720a2bb5f21a80/sshuttle/server.py#L219","weight":0.2833333333333333},{"kind":"complex-function","description":"got_packet in sshuttle/ssnet.py: complexity 17, 45 lines","ref":"sshuttle/ssnet.py","url":"https://github.com/apenwarr/sshuttle/blob/083293ea0dc2ebc77f282c2803720a2bb5f21a80/sshuttle/ssnet.py#L378","weight":0.2833333333333333}],"data":{},"error":null},{"analyzer":"qual-duplication","pillar":"quality","status":"ok","tool_version":"repotrust-dup-w6","metrics":{"compared_lines":3273.0,"duplicated_lines":170.0,"duplicated_share":0.0519,"files":20.0},"findings":[],"evidence":[{"kind":"duplicate-code","description":"6+ duplicated lines: sshuttle/client.py:615 and sshuttle/client.py:657","ref":"sshuttle/client.py","url":"https://github.com/apenwarr/sshuttle/blob/083293ea0dc2ebc77f282c2803720a2bb5f21a80/sshuttle/client.py#L615","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: sshuttle/methods/nat.py:15 and sshuttle/methods/nat.py:66","ref":"sshuttle/methods/nat.py","url":"https://github.com/apenwarr/sshuttle/blob/083293ea0dc2ebc77f282c2803720a2bb5f21a80/sshuttle/methods/nat.py#L15","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: sshuttle/methods/pf.py:133 and sshuttle/methods/pf.py:207","ref":"sshuttle/methods/pf.py","url":"https://github.com/apenwarr/sshuttle/blob/083293ea0dc2ebc77f282c2803720a2bb5f21a80/sshuttle/methods/pf.py#L133","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: sshuttle/methods/tproxy.py:42 and sshuttle/methods/tproxy.py:73","ref":"sshuttle/methods/tproxy.py","url":"https://github.com/apenwarr/sshuttle/blob/083293ea0dc2ebc77f282c2803720a2bb5f21a80/sshuttle/methods/tproxy.py#L42","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: sshuttle/stresstest.py:55 and sshuttle/stresstest.py:76","ref":"sshuttle/stresstest.py","url":"https://github.com/apenwarr/sshuttle/blob/083293ea0dc2ebc77f282c2803720a2bb5f21a80/sshuttle/stresstest.py#L55","weight":0.3}],"data":{},"error":null},{"analyzer":"qual-lint","pillar":"quality","status":"ok","tool_version":"opengrep 1.33.1; rules f1d2b562b414","metrics":{"findings":25.0,"weighted_findings":38.25,"scanned_lines":4039.0,"category:best-practice":14.0,"category:correctness":6.0,"category:maintainability":5.0},"findings":[{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"sshuttle/cmdline.py","line":49,"fingerprint":"python.lang.best-practice.open-never-closed:sshuttle/cmdline.py:49"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"sshuttle/hostwatch.py","line":24,"fingerprint":"python.lang.best-practice.open-never-closed:sshuttle/hostwatch.py:24"},{"rule_id":"opengrep/python.lang.best-practice.open-never-closed","severity":"high","message":"file object opened without corresponding close","path":"sshuttle/hostwatch.py","line":52,"fingerprint":"python.lang.best-practice.open-never-closed:sshuttle/hostwatch.py:52"},{"rule_id":"opengrep/python.lang.maintainability.useless-inner-function","severity":"high","message":"function `_ipt_ttl` is defined inside a function but never used","path":"sshuttle/methods/nat.py","line":79,"fingerprint":"python.lang.maintainability.useless-inner-function:sshuttle/methods/nat.py:79"},{"rule_id":"opengrep/python.lang.maintainability.useless-inner-function","severity":"high","message":"function `_ipt_ttl` is defined inside a function but never used","path":"sshuttle/methods/tproxy.py","line":163,"fingerprint":"python.lang.maintainability.useless-inner-function:sshuttle/methods/tproxy.py:163"},{"rule_id":"opengrep/python.lang.maintainability.useless-inner-function","severity":"high","message":"function `_ipt_ttl` is defined inside a function but never used","path":"sshuttle/methods/tproxy.py","line":248,"fingerprint":"python.lang.maintainability.useless-inner-function:sshuttle/methods/tproxy.py:248"},{"rule_id":"opengrep/python.lang.best-practice.arbitrary-sleep","severity":"high","message":"time.sleep() call; did you mean to leave this in?","path":"sshuttle/stresstest.py","line":36,"fingerprint":"python.lang.best-practice.arbitrary-sleep:sshuttle/stresstest.py:36"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"setup.py","line":42,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:setup.py:42"},{"rule_id":"opengrep/python.lang.correctness.common-mistakes.string-concat-in-list","severity":"medium","message":"Detected strings that are implicitly concatenated inside a list. Python will implicitly concatenate strings when not explicitly delimited. Was this supposed to be individual elements of the list?","path":"setup.py","line":47,"fingerprint":"python.lang.correctness.common-mistakes.string-concat-in-list:setup.py:47"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"sshuttle/client.py","line":34,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:sshuttle/client.py:34"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"sshuttle/client.py","line":79,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:sshuttle/client.py:79"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"sshuttle/cmdline.py","line":49,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:sshuttle/cmdline.py:49"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"sshuttle/cmdline.py","line":176,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:sshuttle/cmdline.py:176"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"sshuttle/firewall.py","line":21,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:sshuttle/firewall.py:21"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"sshuttle/firewall.py","line":31,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:sshuttle/firewall.py:31"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"sshuttle/helpers.py","line":49,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:sshuttle/helpers.py:49"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"sshuttle/hostwatch.py","line":52,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:sshuttle/hostwatch.py:52"},{"rule_id":"opengrep/python.lang.best-practice.unspecified-open-encoding","severity":"medium","message":"Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=\"utf-8\").","path":"sshuttle/hostwatch.py","line":84,"fingerprint":"python.lang.best-practice.unspecified-open-encoding:sshuttle/hostwatch.py:84"},{"rule_id":"opengrep/python.lang.maintainability.code-after-unconditional-return","severity":"medium","message":"code after return statement will not be executed","path":"sshuttle/hostwatch.py","line":137,"fingerprint":"python.lang.maintainability.code-after-unconditional-return:sshuttle/hostwatch.py:137"},{"rule_id":"opengrep/python.lang.maintainability.code-after-unconditional-return","severity":"medium","message":"code after return statement will not be executed","path":"sshuttle/hostwatch.py","line":194,"fingerprint":"python.lang.maintainability.code-after-unconditional-return:sshuttle/hostwatch.py:194"},{"rule_id":"opengrep/python.lang.correctness.common-mistakes.string-concat-in-list","severity":"medium","message":"Detected strings that are implicitly concatenated inside a list. Python will implicitly concatenate strings when not explicitly delimited. Was this supposed to be individual elements of the list?","path":"sshuttle/methods/pf.py","line":176,"fingerprint":"python.lang.correctness.common-mistakes.string-concat-in-list:sshuttle/methods/pf.py:176"},{"rule_id":"opengrep/python.lang.correctness.common-mistakes.string-concat-in-list","severity":"medium","message":"Detected strings that are implicitly concatenated inside a list. Python will implicitly concatenate strings when not explicitly delimited. Was this supposed to be individual elements of the list?","path":"sshuttle/methods/pf.py","line":180,"fingerprint":"python.lang.correctness.common-mistakes.string-concat-in-list:sshuttle/methods/pf.py:180"},{"rule_id":"opengrep/python.lang.correctness.common-mistakes.string-concat-in-list","severity":"medium","message":"Detected strings that are implicitly concatenated inside a list. Python will implicitly concatenate strings when not explicitly delimited. Was this supposed to be individual elements of the list?","path":"sshuttle/methods/pf.py","line":240,"fingerprint":"python.lang.correctness.common-mistakes.string-concat-in-list:sshuttle/methods/pf.py:240"},{"rule_id":"opengrep/python.lang.correctness.common-mistakes.string-concat-in-list","severity":"medium","message":"Detected strings that are implicitly concatenated inside a list. Python will implicitly concatenate strings when not explicitly delimited. Was this supposed to be individual elements of the list?","path":"sshuttle/methods/pf.py","line":244,"fingerprint":"python.lang.correctness.common-mistakes.string-concat-in-list:sshuttle/methods/pf.py:244"},{"rule_id":"opengrep/python.lang.correctness.useless-eqeq","severity":"low","message":"This expression is always True: `recvmsg == recvmsg` or `recvmsg != recvmsg`. If testing for floating point NaN, use `math.isnan(recvmsg)`, or `cmath.isnan(recvmsg)` if the number is complex.","path":"sshuttle/methods/tproxy.py","line":32,"fingerprint":"python.lang.correctness.useless-eqeq:sshuttle/methods/tproxy.py:32"}],"evidence":[],"data":{},"error":null},{"analyzer":"qual-testing","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:has_tests":1.0,"check:test_ratio":0.5615,"check:ci_present":1.0,"check:ci_runs_tests":1.0,"check:ci_runs_lint":0.0,"check:tests_cochange":0.2814,"test_lines":1134.0,"source_lines":4039.0,"test_ratio":0.2808,"ci_files":1.0,"cochange_share":0.0704,"cochange_commits":199.0},"findings":[],"evidence":[{"kind":"ci","description":"CI config: .travis.yml","ref":".travis.yml","url":null,"weight":0.0},{"kind":"ci","description":"CI runs tests (pytest)","ref":null,"url":null,"weight":0.0}],"data":{"test_commands":["pytest"],"lint_commands":[]},"error":null},{"analyzer":"qual-docs","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:readme":1.0,"check:license":1.0,"check:contributing":0.0,"check:changelog":1.0,"readme_lines":31.0},"findings":[],"evidence":[{"kind":"docs","description":"README.rst","ref":"README.rst","url":null,"weight":0.0},{"kind":"docs","description":"LICENSE","ref":"LICENSE","url":null,"weight":0.0},{"kind":"docs","description":"CHANGES.rst","ref":"CHANGES.rst","url":null,"weight":0.0}],"data":{},"error":null},{"analyzer":"qual-type-safety","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:strict_config":0.0,"check:low_escape_density":1.0,"escapes":0.0,"escapes_per_kloc":0.0},"findings":[],"evidence":[],"data":{},"error":null}],"flags":[]}