github.com / jandedobbeleer
jandedobbeleer/ oh-my-posh
Go·1194 files·commit f13369e·scanned 5d ago·cached ✓
15/100
LOW RISK
Minor findings consistent with the project type. Nothing reachable from install hooks.
score capped at 15 — 23,772+ stars — findings likely false positives
scored by engine v10: rules have changed since, rescan for the current result
verdict accurate?
23,772 stars
Partial architecture graph
threat-state: lowlive
FINDINGS ░▒▓
warningDownload piped into a shellA command downloads remote content and pipes it straight into a shell or interpreter (`curl … | bash`, `iwr … | iex`). Nothing is stored for review and the server can change the payload at any time. Common in CI and Dockerfiles, so this is a warning unless the host is hidden.website/src/pages/index.js
curl -s https://ohmyposh.dev/install.sh | bash -s+4warningGo unsafe package usageunsafe package bypasses Go's type safety. Malware uses it for memory tricks, pointer casts, and hiding behavior.src/cache/file_map_windows.go
"time" "unsafe" "github.com/jandedobbeleer/oh-my-posh/src/log"+3
warningGo unsafe package usageunsafe package bypasses Go's type safety. Malware uses it for memory tricks, pointer casts, and hiding behavior.src/cache/path_windows.go
"time" "unsafe" "github.com/jandedobbeleer/oh-my-posh/src/log"+3
criticaleval() usage detectedeval() executes arbitrary code and is commonly used in malware to run obfuscated payloads fetched from remote servers.src/cli/dsc/shell.go
case shell.ELVISH:
return fmt.Sprintf(`eval (%s)`, s.Command)
case shell.XONSH:
return fmt.Sprintf(`execx($(%s))`, s.Command)+8criticaleval() usage detectedeval() executes arbitrary code and is commonly used in malware to run obfuscated payloads fetched from remote servers.src/cli/dsc/shell_test.go
},
expected: `eval (oh-my-posh init elvish)`,
},
{+8criticalGo os/exec usageos/exec is used to run external commands. In malware it drops payloads, modifies the system, or opens shells.src/cli/edit.go
ctx := context.Background()
cmd := exec.CommandContext(ctx, editor, args...)
cmd.Stdin = os.Stdin+8warningGo unsafe package usageunsafe package bypasses Go's type safety. Malware uses it for memory tricks, pointer casts, and hiding behavior.src/cli/font/install_windows.go
"syscall" "unsafe" "github.com/jandedobbeleer/oh-my-posh/src/log"+3
criticalGo os/exec usageos/exec is used to run external commands. In malware it drops payloads, modifies the system, or opens shells.src/cli/statusline_test.go
cmd := exec.CommandContext(context.Background(), "git", args...)
cmd.Dir = dir
cmd.Env = append(os.Environ(), "GIT_CONFIG_NOSYSTEM=1")+8criticalGo os/exec usageos/exec is used to run external commands. In malware it drops payloads, modifies the system, or opens shells.src/gitstatus/gitstatus_test.go
func gitCommand(dir string, args ...string) (string, error) {
cmd := exec.CommandContext(context.Background(), "git", args...)
cmd.Dir = dir
cmd.Env = append(os.Environ(), "GIT_CONFIG_NOSYSTEM=1")+8criticaleval() usage detectedeval() executes arbitrary code and is commonly used in malware to run obfuscated payloads fetched from remote servers.src/shell/init.go
case ELVISH:
command = "eval ((external %s) init %s --config=%s --print%s | slurp)"
config = quoteElvishStr(config)
executable = quoteElvishStr(executable)+8criticalFunction() constructor detectednew Function() is equivalent to eval() and can execute arbitrary code strings.website/scripts/render-segment-previews.mjs
// eslint-disable-next-line no-new-func
segment = new Function(`"use strict"; return (${literal});`)();
} catch (error) {
return { error: `failed to evaluate object literal: ${error.mess...+5criticalFunction() constructor detectednew Function() is equivalent to eval() and can execute arbitrary code strings.website/scripts/wasm-renderer.mjs
// eslint-disable-next-line no-new-func
new Function(shim).call(globalThis);
if (!globalThis.Go) {+5warningSSH/credential path accessAccessing .ssh, .aws/credentials, or .env files to steal authentication credentials.src/segments/ssh_agent_test.go
func TestSSHAgent(t *testing.T) {
const twoKeys = "256 SHA256:abc /home/user/.ssh/id_ed25519 (ED25519)\n" +
"3072 SHA256:def work@laptop (RSA)"
const fiveKeys = twoKeys + "\n" ++5infoSuspicious file in repoExecutable file (Microsoft.PowerShell_profile.ps1) in repository.devcontainer/Microsoft.PowerShell_profile.ps1+2
warningHardcoded secret/credentialAPI keys, passwords, or tokens hardcoded in source code. Should be in environment variables.src/runtime/http/oauth.go
TokenRefreshFailed = "token refresh error" DefaultRefreshToken = "111111111111111111111111111111" )+3
Scores reflect the files and rules covered by this scan. How to read this report
842 files scanned @ f13369e | 11/19/2026 | heuristic scan — always review manually
risk by category
code execution25
network & exfiltration0
file system access5
obfuscation0
supply chain15
owasp / injection3
telemetry
files 842/1194rules hit 19engine v10commit f13369e
github
jandedobbeleer/oh-my-posh
The most customisable and low-latency cross platform/shell prompt renderer
23772
2804
2814d
1194 files
842 scanned(71%)
f13369e
network indicators░▒▓
Hosts this code names or would connect to. Top 50 of 191, decoded and call-site destinations first. Informational, not scored.
- https://ohmyposh.dev/install.shurlnext to execwebsite/static/install.sh:96 +4 more
- https://www.strava.com/api/v3/oauth/tokenurlnext to network callwebsite/api/shared/strava.js:10 +1 more
- https://wbsapi.withings.net/v2/oauth2urlnext to network callwebsite/api/shared/withings.js:13 +1 more
- https://cdn.ohmyposh.dev/releases/latest/themes.zipurlwebsite/static/install.sh:158
- https://cdn.ohmyposh.dev/releases/latest/posh-$urlwebsite/static/install.sh:194
- https://cdn.ohmyposh.dev/releases/$urlwebsite/static/install.sh:196
- https://ohmyposh.dev/docs/installation/prompturlwebsite/static/install.sh:211 +1 more
- https://golangci-lint.run/docs/welcome/install/url.agents/hooks/main.go:28
- https://ohmyposh.dev/api/mcpurl.mcp.json:5 +3 more
- https://github.com/login/device/codeurlsrc/cli/auth/tui/copilot.go:21
- https://github.com/login/oauth/access_tokenurlsrc/cli/auth/tui/copilot.go:22
- https://api.github.com/repos/urlsrc/cli/font/fonts.go:113
- https://cdn.ohmyposh.dev/releases/urlsrc/cli/upgrade/config.go:86
- https://ohmyposh.dev/codepoints.csvurlsrc/config/migrate_glyphs.go:25
- https://weu.codesigning.azure.neturlsrc/metadata.json:2
- https://ohmyposh.dev/api/refreshurlsrc/runtime/http/oauth.go:75 +2 more
- https://github.com/angular/angular/releases/tag/urlsrc/segments/angular.go:37
- https://github.com/aurelia/aurelia/releases/tag/vurlsrc/segments/aurelia.go:38
- https://web.brewfather.app/tabs/batches/batch/urlsrc/segments/brewfather.go:130
- https://api.brewfather.app/v1/batches/urlsrc/segments/brewfather.go:209 +3 more
- https://github.com/bufbuild/buf/releases/tag/vurlsrc/segments/buf.go:37
- https://github.com/oven-sh/bun/releases/tag/bun-vurlsrc/segments/bun.go:35
- https://api.carbonintensity.org.uk/intensityurlsrc/segments/carbon_intensity.go:90 +1 more
- https://github.com/cloudfoundry/cli/releases/tag/vurlsrc/segments/cf.go:36
- https://cmake.org/cmake/help/vurlsrc/segments/cmake.go:37
- https://api.github.com/copilot_internal/userurlsrc/segments/copilot.go:31 +1 more
- https://github.com/denoland/deno/releases/tag/vurlsrc/segments/deno.go:35
- https://github.com/dotnet/core/blob/main/release-notes/urlsrc/segments/dotnet.go:97
- https://github.com/flutter/flutter/releases/tag/urlsrc/segments/flutter.go:51
- https://dev.azure.comurlsrc/segments/git.go:862
- https://github.com/gradle/gradle/releases/tag/vurlsrc/segments/gradle.go:47
- https://www.haskell.org/ghc/download_ghc_urlsrc/segments/haskell.go:67
- https://api.ipify.orgurlsrc/segments/ipify.go:90 +2 more
- https://github.com/crystal-lang/crystal/releases/tag/urlsrc/segments/languages.go:154
- https://github.com/elixir-lang/elixir/releases/tag/vurlsrc/segments/languages.go:176
- https://github.com/JuliaLang/julia/releases/tag/vurlsrc/segments/languages.go:189
- https://github.com/JetBrains/kotlin/releases/tag/vurlsrc/segments/languages.go:202
- https://www.lua.org/manual/urlsrc/segments/languages.go:212
- https://github.com/LuaJIT/LuaJIT/tree/vurlsrc/segments/languages.go:219
- https://www.php.net/ChangeLog-urlsrc/segments/languages.go:272
- https://www.r-project.orgurlsrc/segments/languages.go:297
- https://github.com/apple/swift/releases/tag/swift-urlsrc/segments/languages.go:332
- https://gitlab.gnome.org/GNOME/vala/raw/urlsrc/segments/languages.go:357
- https://ziglang.org/download/urlsrc/segments/languages.go:371
- https://dart.dev/guides/language/evolutionurlsrc/segments/languages.go:392
- https://ws.audioscrobbler.com/2.0/urlsrc/segments/lastfm.go:62 +1 more
- https://github.com/apache/maven/releases/tag/maven-urlsrc/segments/mvn.go:44
- https://cdn.nba.com/static/json/liveData/scoreboard/todaysScoreboard_00.jsonurlsrc/segments/nba.go:51
- https://stats.nba.com/stats/internationalbroadcasterscheduleurlsrc/segments/nba.go:52
- https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_Vurlsrc/segments/node.go:59
architecture░▒▓
entry (0) flagged (28) pkg (131)
531 nodes · 1506 edgesscroll to zoom · click node to jump to finding