News for hackers. Stuff that matters.
Re:Why bother with argv[0]? by shadowgovt on Wednesday September 04, 2024 @10:49AM (#41446457)
I see a common anti-pattern in security researchers in that they can lose sight of the human beings who operate the software.

argv[0] should be used by any logging message that purports to report the program name, because argv[0] should be a string the human recognizes as something they invoked. Taking it away would break usability.

This does, of course, imply that the program name is non-constant untrusted data. Which means we shouldn't be making security software that depends on knowing that name.

There are no comments on this comment yet.