Globally readable OSQuery log archives
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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