How can I verify the safety of a Python package I mistakenly executed with admin privileges, and what steps should I take to secure my system?
Before anything, please excuse my clear confusion over what is probably a non-issue. Computer security is definitely not my expertise, so any and all help is appreciated.
I recently installed a Python package through pip
that does not have many GitHub stars and is from a relatively unknown author. During its execution, I got a user access error, so I ran the command on a CMD with admin privileges to try to fix the problem. I then realized I had just run code from an unknown source with admin privileges, which is really not a good idea.
Because I am not proficient enough at programming to really understand the GitHub source, I can't tell if the code is "clean" or if it might have done something to my computer. Please note I have nothing against this specific package or its author; if anything, their package seems very useful, which is why I tried to use it in the first place. The burden lies on me for messing with things that I do not understand.
My question: Is there anything I can do to check that my computer isn't compromised (e.g., Would a whole-system scan with Windows Defender be enough)? I am almost certain that the package I mentioned is safe, and I'm making a storm out of a glass of water, but I'm worried since I would not be able to identify any suspicious source code by looking at it due to my lack of knowledge.
In summary: I'd be thankful for any indication that the package is indeed safe or for a method by which I may check that I'm not compromised. Furthermore, any advice on "staying safe" when installing and using Python packages is appreciated.