News for hackers. Stuff that matters.
Re:The CIA's “Development Tradecraft Do's and Dont's” by tombone12 on Monday March 13, 2017 @09:25PM (#13864179)
How easy is it for automated tools to spot encryption routines in a binary? If my notepad replacement had call to encryption algorithms in it I'd be a bit surprised...
Re:The CIA's “Development Tradecraft Do's and Dont's” by boardwaalk on Monday March 13, 2017 @11:23PM (#13864713)
This is equivalent to asking, "How good are virus scanners?"

Many crypto routines have identifiable constants but there are myriad ways to obfuscate code too so I'm not sure there's an answer other than: It depends on how hard they're trying to avoid you and how hard you're trying to find them.

Re:The CIA's “Development Tradecraft Do's and Dont's” by boulos on Tuesday March 14, 2017 @03:10AM (#13865635)
The presence of AES instructions would be easy just from static analysis. Also loops of shifts and xors that are accumulating, etc. You could easily map the structure of various encryption algorithms into a static analysis tool. (I feel like the dynamic analysis proposed below about watching outputs being random is clever, but much more difficult).
Re:The CIA's “Development Tradecraft Do's and Dont's” by dmichulke on Tuesday March 14, 2017 @05:29AM (#13866143)
> Also loops of shifts and xors that are accumulating, etc.

I think the problem is then to avoid punishing binaries for, e.g., using a hashmap :)

Re:The CIA's “Development Tradecraft Do's and Dont's” by contingencies on Tuesday March 14, 2017 @02:36AM (#13865517)
Statistically, any routine which results in randomized output from non-random input (and especially if it is repeatably deterministic) would be a good candidate.
Re:The CIA's “Development Tradecraft Do's and Dont's” by jnwatson on Tuesday March 14, 2017 @02:09AM (#13865407)
Good symbolic analysis can identify simpler (e.g. RC4) encryption algorithms, but the run time is currently too expensive to run on every binary.
Re:The CIA's “Development Tradecraft Do's and Dont's” by slededit on Tuesday March 14, 2017 @04:40PM (#13871283)
COM will use crypto routines as a matter of course - so practically every windows program will have these instructions.