Live data from Hacker News

I Inspected My Take-Home Interview Project. It Was a Whole Operation

citizendot.github.io

101–110 of 135 posts

Re: I Inspected My Take-Home Interview Project. It Was a Whole Operation

#102

> Why use a raw IP address? If anything, this screams “malware.” If the victim is deep enough to check hook's content, it's unlikely they will just stop here losing suspicion. I'm sure most devs wouldn't think that doing `git commit` can be malicious (git security oversight?).

> git security oversight?

Executing downloaded code without prior review always is these days, regardless of the tool that does it.

Re: I Inspected My Take-Home Interview Project. It Was a Whole Operation

#105
post #99

Ok, how do I disable git hooks unless it’s in a manually blessed directory?

  git config --global core.hooksPath /dev/null
Then, in repos you want to turn it on:

  git config core.hooksPath "$PWD/.git/hooks"
This also works on Windows (and presumably other operating systems where /dev/null does not exist) as it seems to be handled as a special-case value.

Re: I Inspected My Take-Home Interview Project. It Was a Whole Operation

#106

how to protect against something like this?

1. restrict outbound connections by binary.

2. restrict outbound connections to known malicious IPs or domains.

3. run untrusted code/apps:

   - under a different user
   - or inside a sandbox
   - or in a VM
4. remove exec permissions to temporary directories (/tmp, /var/tmp, /dev/shm)

Re: I Inspected My Take-Home Interview Project. It Was a Whole Operation

#107
post #8

Bruh the harry potter theme song scared the shit out of me as it turned itself on. Bad UX for a personal site. Great article btw !

sorry, i added it to set the mood for my site :') yk, like moving lamps at the top, hanging dementor at the right side (only visible on desktops). should i remove it?

I liked it. I wondered where the music was coming from initially, but I liked it.

Re: I Inspected My Take-Home Interview Project. It Was a Whole Operation

#110

> Why use a raw IP address? If anything, this screams “malware.” If the victim is deep enough to check hook's content, it's unlikely they will just stop here losing suspicion. I'm sure most devs wouldn't think that doing `git commit` can be malicious (git security oversight?).

if you just clone a repo no githooks are every automatically enabled. but since this was downloaded not cloned it's a different story
Post reply on HN