Skip to content

More commands in the console with a new help - #974

Merged
javuto merged 1 commit into
developfrom
commands-console
Aug 18, 2026
Merged

More commands in the console with a new help#974
javuto merged 1 commit into
developfrom
commands-console

Conversation

@javuto

@javuto javuto commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a larger set of read-only console shortcuts backed by osquery tables, including file hashing/type checks, HTTP checks, process/network inspection, host inventory, persistence, package, browser extension, and firewall views.

Also replaces the one-line help output with a grouped multi-line cheat sheet so operators can discover the new commands directly from the console.

Changes

  • Added console aliases such as hash, mime, curl, ports, sockets, lsof, env, routes, dns, autoruns, packages, firewall, os, sysinfo, and uptime.
  • Kept command execution read-only by translating aliases to osquery SELECT statements.
  • Added validation for path, URL, PID, and no-argument commands.
  • Added platform-aware queries for packages and firewall.
  • Expanded parser tests for alias SQL generation, argument validation, and formatted help output.

Validation

  • GOCACHE=/tmp/osctrl-gocache go test ./pkg/console ./cmd/api/handlers
  • git diff --check

Security Notes

  • User-controlled path and URL values are SQL-quoted.
  • PID arguments are parsed as integers.
  • curl is limited to http and https URLs.
  • Shell-style syntax remains rejected for path commands.

@javuto javuto added osctrl-api osctrl-api related changes ⭐️ frontend Frontend related issues labels Aug 18, 2026
@javuto
javuto merged commit 3b80588 into develop Aug 18, 2026
7 checks passed
@javuto
javuto deleted the commands-console branch August 18, 2026 11:51
@javuto javuto added the 🖥️ console Console related issues label Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🖥️ console Console related issues ⭐️ frontend Frontend related issues osctrl-api osctrl-api related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant