Getting schooled by my own security tool
Posted by ClassroomHaunting333@reddit | linux | View on Reddit | 10 comments
I was cleaning my system last night running sudo rm -rf /var/cache/pacman/pkg/download-* to clear up some space after failed AUR package install.
I was so frustrated and tired at the situation I was in, that I completely forgot I had my own security auditor, Oversight, running in the background. It jumped in and blocked the command. That was quite a surprise to see it working.
I have spent so much time crafting the regex rules for system integrity that I managed to catch myself off guard executing a now way back command. It is one thing to test a security tool against dummy files, but having it stop me from nuking my own directory when I was focused on something else felt like a real success.
It is a first time I am sharing this the project. It is a distro-agnostic auditor designed to scan scripts and commands before they run.
Couple of days ago I pushed v0.3.5, which moves the logic to an external JSON rules engine and adds multi-line context awareness, so it shows you exactly which lines of code are risky before you hit enter. At the moment it can scan locally and from GitHub, Gist, or any raw URL.
I am moving into Phase 2 now. The plan is to integrate the OSV.dev API so it can flag known vulnerabilities in package versions, plus adding basic de-obfuscation for base64 payloads to see what is hidden in those curl pipe bash commands.
It feels like the project is starting to hold its own. Has anyone else experienced that weird satisfaction of being blocked by their own code?
If you are interested, you can check Oversight here: https://github.com/Rakosn1cek/oversight
Any feedback is welcome.
AutoModerator@reddit
This submission has been removed due to receiving too many reports from users. The mods have been notified and will re-approve if this removal was inappropriate, or leave it removed.
This is most likely because:
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
ClassroomHaunting333@reddit (OP)
For everyone here. The post is not a sales pitch. I just simply sharing what I am doing and why. It's opensource and anyone is welcome to check/look at the code it self. If you do like it, I am open to a meaningful conversation. If you don't like it, that's fine. Just scroll past. Simple as that.
creeper6530@reddit
Did you use AI for this?
ClassroomHaunting333@reddit (OP)
I do have some help, yes.
Journeyj012@reddit
define help.
ClassroomHaunting333@reddit (OP)
It assists with boilerplate code, syntax debugging, and drafting documentation. I write the core logic and security definitions. It is accelerator, not the primary author.
creeper6530@reddit
In other words, you don't even know the syntax of the language you're using?
ClassroomHaunting333@reddit (OP)
Look, the code is open for inspection. If you find something out of place or not working, I am happy to take any critique or advice. If you would like to contribute, you are welcome. Otherwise just scroll past and go happy with your day.
aloobhujiyaay@reddit
it's true but it's more of a rabit hole 🕳️ you start with Linux and get the gold standard than ta start tinkering
ClassroomHaunting333@reddit (OP)
Exactly. You start off just wanting a system that doesn't get in your way, and before you know it, you are knee deep in shell scripts and security headers. The tinkering is not really a side effect. It is the inevitable end game for anyone using Linux seriously. Oversight started as a way to scratch that exact itch.