Skip to content

sync fork - #4

Open
TaxMachine wants to merge 343 commits into
TaxMachine:mainfrom
BaaRai:main
Open

TaxMachine wants to merge 343 commits into
TaxMachine:mainfrom
BaaRai:main

Conversation

@TaxMachine

Copy link
Copy Markdown
Owner

No description provided.

BaaRai and others added 30 commits November 22, 2026 08:06
fix(notify): dial notification targets directly
fix(traffic): keep spilled capture blobs owner-only
fix(db): drop userinfo from an asset URL that cannot be parsed
fix(hookvm): charge range iterations against the memory budget
fix(server): stop the chat upload name search when the path cannot be created
# Conflicts:
#	CHANGELOG.md
#	server/chatupload.go
fix(server): refuse to upload through a symlink
Tighten existing spill blob permissions on startup, charge 32 bytes per hook range pair, and open uploads with O_NOFOLLOW on Unix. Tests cover the startup walk, the 32-byte charge and the no-follow open.
…64-465

security: follow-up hardening for the upload and capture fixes
Add opt-in intercept rules (action ask, timeout -> deny) that pause the agent
before it downloads from code/exploit hosts, runs git clone, installs packages,
or pipes remote content into a shell, plus a third-party-code-review skill
(hash, blocklist-check, read and summarize the code before running it).

Nothing is seeded: the rules change no behavior until hardening/apply-intercept-rules.sh
is run, and code the agent writes itself is not gated -- only the point where
untrusted code enters. Regex patterns are RE2 (verified to compile); the apply
script is idempotent.
- Priority 95-96 -> 70-72, below the built-in destructive denies (80/90/100),
  so 'pip install x && curl -X DELETE ...' still hits the DELETE deny instead of
  being downgraded to an approval (intercept.Match is priority-DESC).
- apply-intercept-rules.sh no longer sources .env as shell (code execution / $
  expansion). It reads POSTGRES_USER/DB from the postgres container's own env.
- Add a 'deny' rule for reading /app/keys, /proc/<pid>/environ and the DSN, so
  the key/DSN prohibition is enforced, not prose.
- Close named regex bypasses (pip3.12, git -c, bash -c "$(curl)", curl | tar);
  document the remaining open bypasses, the false positive, and the target-only
  limitation in the skill.
- Add hardening/rulecheck: compiles the patterns from the SQL (RE2) and asserts
  positives, closed bypasses, and documented open cases (18 cases, 0 failures).
The panel had no way to scope it to one target. Companies exist as the
ownership layer, but only the task form offered one, so a second engagement
mixed into every list.

Sidebar header, under the logo: a company picker that defaults to
"All companies" and persists per browser. Every asset-backed view follows
it — findings (all three views plus the asset tree and export), the
dashboard's finding panels, the task list, the traffic list and the assets
tabs.

Server side the switch rides on the existing ownership column: findings and
traffic take a company, and the assets list takes company_id on both the
plain and the DSL path. Findings with no live asset anchor stay visible
under their company, because they belong to no other one; the strict
subtree filter would hide them from every view.

Tests: TestFindingCompanyScopeFilter (own assets, another company, a
company with none, a nonexistent id) and TestPageHostsAllowlist. Full
./db/ ./traffic/ ./server/ pass.

Co-Authored-By: Claude Code <[email protected]>
Claude-Session: https://claude.ai/code/session_01BWbhPDnkSEFNzBXG4wDvTj
- Findings with no live asset belong to a company only through their
  task's company scope; unknown or non-numeric ids match nothing.
- Filter tasks by company on the server (GET /api/tasks?company=).
- Scope the grouped findings view, the asset tree and the stat cards.
- AND company_id outside the compiled asset DSL so OR cannot escape it.
- Add the 7 company switcher keys to tr.json and zh-CN.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BWbhPFZifkVU75uaD5NYj5
test(enrich): add coverage tests (0% to 90.2%)
…rompt

agent: list available skills in the system prompt
docs(readme): add External PostgreSQL section and Compose example (#475)
feat(hardening): opt-in operator approval for acquiring third-party code
The skill told the agent to append to /app/data/third-party-blocklist.txt, but under agent isolation the data directory is not writable by the executor uid. HOME points at the executor home in both modes and is writable there. Follow-up to #417.
fix(skill): write the third-party blocklist in the executor home
BaaRai and others added 30 commits November 26, 2026 23:40
fix: custom-tool injection, SOCKS5 open proxy, multipart body cap, example IP
fix(server): cap insert_assets request bodies
…tokens

fix(llm): honor max_tokens_field in the connection test
fix(server): do not return database errors from the skill endpoints
chore: migrate log.Printf to log/slog in server management and control
fix(hookvm): charge a ReplaceAll result before building it
build(docker): preinstall pinned python dependencies for agent scripts
fix(agent): cap list tool page sizes
fix(mcp): cap legacy SSE line length
feat(agent): add versioned knowledge pack and knowledge_lookup tool
ListLogs, ListLogsBefore and the two task_relations reads in the task
archive code never checked rows.Err(). When a result set fails partway
(connection drop, statement timeout), Next returns false and closes the
rows, so the later Close returns nil and the caller got a silently
truncated list: missing log lines, or an archive whose source tasks
are incomplete.


Claude-Session: https://claude.ai/code/session_01JNRiKGwr3P1LP1njD8FbR4

Co-authored-by: Claude <[email protected]>
Co-authored-by: BaaRai <[email protected]>
…vidence-hint

fix(compaction,tools): stop forcing thinking=disabled and degrade stale evidence_hint_id
fix(agent): reject tool-call replies in the LLM connection test
feat(agent): deterministic finding fingerprint dedup
fix(goals,planner): enforce structured set_goals and refuse empty planning context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.