(Sep 17, 2018 01:44 AM)evilai Wrote: Thank you a lot for your input
I am using pyinstaller hmm... and no I am not signing it - would that have an impact and in what way? I am thinking of modifying the hex values later - maybe that will improve the results.
What is your workflow when you create backdoors? What tools do you use? How do you make them undetectable? Do you make your own scripts?
I look forward to reading your input
Thank you a lot for your answer.
If you have success with making them undetectable - what specifications do you use to make them undetectable?
I've described my processes in rather in depth details .. But I tend to start out from source code, from there depending on what language is being used maybe I need to call up different API's or say instead of using virtualalloc maybe I use something else, but I do make sure that the threads and process and memory is mapped properly. Once I have something that looks alright I move over to a VM I have multiple snapshots with various AV's which a client has, I will make sure I have pretty close if not the exact update and version of the AV. From there I really tend to take OPSEC seriously, so often I will use objcopy and just use sections of the file see where I get detections. If you read "Taking Back Netcat" that will help with scantime, but the idea is we find the signatures and then we break it up. There is a project on github AVSignSeek I think that's the name but it does pretty close to the manual method I use. The real trick is just having good opsec you want to protect your payload, because say that the whole file is burned accidentally the VM is not offline and uploads your file, that's not good total waste of time. I don't scan things on online scanners only time is for a demonstration or testing. Between ghex/objcopy
Runtime really is a whole set of things you will see people setting up timers all this jazz, I have found that having a loop where it does something for a certain amount of time until it's not being actively monitored by the AV, also during this time I will keep the memory permissions on just RW, maybe having one section (the payload ) later on becomes X. Also signing is important AV's will give you more leeway with signed files, legit certs of course.
You have to remember that Veil payloads have been around wow for a long while now, and most all use pyinstaller when generating python payloads, so AV's tend to call EVERYTHING py2exe/pyinstaller/cxfreeze as malware. You will find that now a days AV makers just lump certain things as malicious and call it a day. Look at Empire their powershell payloads are really struggling. I hate to say it and it's not meant to be a put down but AV companies sometimes just don't know what to do look at how Microsoft Defender/Defender Cloud/Defender SmartScreen now operate. Smartscreen with block just says "Not signed it's malicious" GateKeeper for OSX does the same crap.
Example of backdoor in GO and scan not yet messed with runtime.
https://hackforums.net/showthread.php?ti...id57607862
AV Evasion (Included sources so others may use them for reference talks about runtime) :
https://hackforums.net/showthread.php?tid=5808303