live · scanning repos
Scanrepo
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
+4
warningGo 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)
+8
criticaleval() 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)`,
		},
		{
+8
criticalGo 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
+8
warningGo 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")
+8
criticalGo 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")
+8
criticaleval() 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)
+8
criticalFunction() 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...
+5
criticalFunction() 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) {
+5
infoSuspicious files are not reachable from entry pointsFlagged files exist but are not imported by any entry point. They may be dead code, tests, or attack payloads triggered by another mechanism.+2
warningSSH/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" +
+5
infoSuspicious file in repoExecutable file (Microsoft.PowerShell_profile.ps1) in repository.devcontainer/Microsoft.PowerShell_profile.ps1+2
infoSuspicious file in repoExecutable file (post.ps1) in repositorybuild/post.ps1+2
infoSuspicious file in repoExecutable file (pre.ps1) in repositorybuild/pre.ps1+2
infoAuthor has no other public repositoriesGitHub user "claude" has no other public repositories, common for burner accounts used in scams.+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

Go
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.

architecture░▒▓

entry (0) flagged (28) pkg (131)
531 nodes · 1506 edgesscroll to zoom · click node to jump to finding