Записки потомственного it'шника
275 subscribers
509 photos
40 videos
204 files
1.65K links
Краткость — сестра таланта.
Автоматизация — мать порядка.
Ransomware'щики — боги.
Батя — программист over 80+ level.
Мать — бухгалтер, соскачившая с цифр на контдитерские изделия.
Ну а я — бакалавр ИБ по собственной воле.
Update: уже магистр.
Download Telegram
Forwarded from Dmitry Karasovsky
Коллеги,
@timeisblack из ГАРДА Технологии сделал отличную автоматизацию фаззинга библиотеки re2 на основе docker-контейнера.
Во время фаззинга делаются скриншоты окна AFL, контейнер автоматически занимает все доступные ядра и прекращает фаззинг после 2 часов с момента нахождения последнего пути. После завершения фаззинга автоматически запускается сбор покрытия. Предлагаю брать на вооружение.
https://github.com/fuzzah/TrustedDynamic/tree/re2-container/Containers/re2
Forwarded from 1N73LL1G3NC3
How to open a TCP/UDP socket in a bash shell

Может быть полезно, когда попали в контейнер и нужно поработать с сетью, а любимых netcat, curl и wget нет и поставить нельзя ...

На помощь идут файловые устройства /dev/tcp и /dev/udp ;)

https://www.xmodulo.com/tcp-udp-socket-bash-shell.html

А если вы хотите не оставлять такую лазейку в своих контейнерах с bash внутри, то надо собрать его без флага --enable-net-redirections.
Forwarded from OpenNews (HK-47)
Атака Trojan Source для внедрения изменений в код, незаметных для разработчика
Исследователи из Кембриджского университета опубликовали новую технику незаметной подстановки вредоносного кода в рецензируемые исходные тексты. Подготовленный метод атаки (CVE-2021-42574) представлен под именем Trojan Source и базируется на формировании текста по разному выглядящего для компилятора/интерпретатора и человека, просматривающего код. Примеры применения метода продемонстрированы для различных компиляторов и интерпретаторов, поставляемых для языков C, C++ (gcc и clang), C#, JavaScript (Node.js), Java (OpenJDK 16), Rust, Go и Python.
Forwarded from GitHub Community
​“Hello world” на каждом языке программирования. Всего собрано 832 примеров!

GitHub | #Archive #Code
Forwarded from GitHub Community
​Wtfpython – Забавный проект, пытающийся объяснить, что именно происходит под капотом у некоторых нелогичных фрагментов и менее известных функций в Python.

>>> a = 256
>>> b = 256
>>> a is b —> True

>>> a = 257
>>> b = 257
>>> a is b —> False
Это самый простой пример из имеющихся 65+

GitHub | #Python #Interesting
Forwarded from }{0tt@bь)ч (alekum)
Немного материалов для заинтересованных возней с компиляторами, также в реплаях я оставил ссылку на русско говорящее коммьюнити, которая собрало очень неплохую подборку. Я лично просто в свое время скинул в чат немного литературы из личных источников. Полезно.

https://twitter.com/1101_debian/status/1456346324794806274?s=21
Forwarded from 1N73LL1G3NC3
Побег из контейнера с примерами и описанием, среди которых:
- CVE (уязвимости container runtime и linux kernel)
- Exposed Docker Socket
- Excessive Capabilities
- Host Networking Driver
- Sensitive Mounts

https://0xn3va.gitbook.io/cheat-sheets/container/escaping
Неистово поддерживаю.
Forwarded from d&s notes
Obfuscation Tools for evasion AV and anti-reverse ,time delay from deobfuscation:

https://github.com/XenocodeRCE/neo-ConfuserEx
https://github.com/klezVirus/chameleon
https://github.com/klezVirus/inceptor
https://github.com/Charterino/AsStrongAsFuck
for learn dead sample(because auto deobfuscate) for create your own js-obfuscator: {
https://github.com/javascript-obfuscator/javascript-obfuscator
}
https://github.com/macmade/Obfuscate
https://github.com/sevagas/macro_pack
https://github.com/burrowers/garble
https://github.com/JustasMasiulis/lazy_importer
https://github.com/JustasMasiulis/inline_syscall
https://github.com/quarkslab/llvm-passes
https://github.com/emc2314/YANSOllvm
https://github.com/BedTheGod/ConfuserEx-Mod-By-Bed
https://github.com/enkomio/sacara
https://github.com/tsarpaul/llvm-string-obfuscator
https://github.com/alphaSeclab/obfuscation-stuff
https://github.com/iWinston/javascript-code-protection-example
https://github.com/jwillbold/rusty-jsyc
https://github.com/Rustemsoft/Skater-.NET-Obfuscator
https://github.com/lawliet89/LLVM-Obfuscator
https://github.com/Hippo/Mosey
https://github.com/3NC0D/Powershell-Obfuscator
https://github.com/Deniskore/nand_nor
https://github.com/D34Dspy/Simple-Mutation-Base
https://github.com/danobfuscation
https://github.com/biniamf/data_obfuscation
https://github.com/gh0x0st/Invoke-PSObfuscation
https://github.com/hotline1337/umium
https://github.com/HikariObfuscator/Hikari


Deobfuscation Taxonomy:
https://github.com/calware/Deobfuscation
Deobfuscator js ,sample for deobfuscation mechanism and algorithm:
https://github.com/Its-Vichy/ClearJS

Notes:
you can't just blindly use obfuscators and hope that your source or binary is FUD. You will have to install a lot of AV, use a whole list of well-known deobfuscators and less common ones, and if obfuscation persists, then this is FUD, but with a stretch. (Since a less experienced reverse engineer only needs to look at the sample and the semantics of the software covered will be clear) Anyone who performs obfuscation is primarily a reverse engineer and knows how to professionally deobfuscate samples. The principle is simple: we take open source tools, libraries and other tools (obfuscators, engines, interpreters) and apply them in stages, see where deobfuscators and AV break, what is obfuscation, but how stable is obfuscation for reverse engineering? Therefore, we combine open source tools and, depending on the task, modify the tools or, for a specific root (the root is the abstraction level, the depth of the project, from which we will start refactoring the code and writing our code for an existing open source project or repository), redo a tool for our tasks, for example sacara VM, it probably already has a deobfuscator for it, which we will not like, so we take the src code and transfer it from F # to In a more well-known and acceptable language, for example C ++, Rust, golang, C or rewrite, who knows F #, you can go straight to changing the logic and obfuscation of the virtual machine and bytecode. For example, you can completely change the encoding and encoding format of the instructions, then change the bytecode obfuscator passes, or even throw them away and write your own. The best option is to make support in the llvm tablegen for the format of this bytecode and intelligently obfuscate the llvm passes, providing obfuscation at each level of llvm downgrade, respectively, delegating at each level of abstraction the intermediate representation to a group of obfuscating passes, This means that you can avoid code development for this virtual machine on ASM and immediately write in any programming language you like with the support of the frontend llvm, and llvm will compile the program written in your language into the sacara bytecode of the virtual machine. The old patterns were removed, the logic and algorithm were changed for themselves, you get FUD against AV and reverse engineering (I mean automation and inexperienced specialists fall off)

#obfuscation #AV_evasion #deobfuscation