osquery / osquery/osquery

Globally readable OSQuery log archives

Open
#8,103 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

deployment hardening logging
Dominant language
C++
Stars
23.6k
Forks
2.6k
Avg merge
6d 7h
Merged PRs (30d)
14

Description

Bug report

What operating system and version are you using?

macOS 12.4

What version of osquery are you using?

5.9.1

What steps did you take to reproduce the issue?

ls -l /var/log/osquery

What did you expect to see?

osqueryd.results.log.X.zst is saved with the file permission of rw-r----- matching that of the active log osqueryd.results.log

What did you see instead?

osqueryd.results.log.X.zst is saved with file permission of rw-r--r--.

This allows any user on the system to unarchive these archive files and read their content, effectively rendering (although in a delayed fashion) the 640 permission on the result logs redundant.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the permission difference with ls -l /var/log/osquery, comparing osqueryd.results.log with osqueryd.results.log.X.zst. Trace the osqueryd result-log archive path and verify that completed archives retain the active log's rw-r----- permissions, with no broader read access.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos
Domain
operating-systems, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.