# AllaSenha: AllaKore variant leverages Azure cloud C2 to steal banking details in Latin America (Brazil)

> A phishing campaign impersonating Brazilian NFS-e electronic invoices delivers AllaSenha, a custom AllaKore RAT variant and banking trojan, via a WebDAV-hosted LNK disguised as a PDF, a Python loader chain (BPyCode) and a Delphi loader (ExecutorLoader) that injects it into a renamed mshta.exe. AllaSenha uses a date-based DGA for raw-TCP C2 on *.brazilsouth.cloudapp.azure.com hostnames and steals credentials for Brazilian bank accounts.

- **Published:** 2026-11-28T20:14:07Z
- **Last reviewed:** 2026-11-28T20:14:07Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7035
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7035.png
- **ID:** TL-2026-7035
- **Severity:** HIGH
- **Category:** MALWARE
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 27 (3 shown free below)

## Description

HarfangLab (TRR240501, published 2024-05-28) analyzed a banking-trojan campaign against Brazilian users. Phishing emails impersonating NFS-e/NF-e electronic invoices (subjects such as 'NFS-e Emitida', 'Segue a NFe gerada', 'Nota Fiscal gerada') carry is.gd shortened links that redirect to phishing pages on nfe-digital.digital / nfe-digital.top (registered 2024-04-26 at GoDaddy, fronted by Cloudflare, origin likely HostGator Brazil). A button on the page uses the Windows search: URI handler to open a WebDAV share (\\<IP>@80\Documentos) in Explorer, exposing NotaFiscal.pdf.lnk, which is disguised as a PDF.

The LNK runs cmd.exe, writes a decoy NotaFiscal.pdf containing the text 'Indisponivel', and runs a launcher batch file from the WebDAV share (a3.cmd in earlier waves, dc\c.cmd from late April 2024). The launcher runs a base64-encoded PowerShell command that derives a folder name from the reversed, lowercased computer name, creates it under C:\Users\Public, downloads the embeddable Python 3.10.0 package from python.org, copies pythonw.exe to <name>.exe and runs base64-encoded Python (BPyCode). BPyCode generates 3 DGA hostnames per day (SHA-1 of a date-derived string with a letter lookup table) under <DGA>.brazilsouth.cloudapp.azure.com on one of 10 TCP ports, beacons 'pyCodeV10 - *NEWW*' with hostname, processor name, Windows version and username, and receives a Pickle-serialized dictionary holding a further loader, the PythonMemoryModule package and a ZipCrypto-protected ZIP (password 'Snh2301**Snh2301**') containing ExecutorLoader. BPyCode persists via a C:\Users\Public\<filename>.txt copy and an HKCU Run key, and stops if the processor name contains 'Broadwell'.

ExecutorLoader (Borland Delphi 10.4, executor.dll / Execute_dll.exe, export 'Force', compiled 2024-05-02) copies mshta.exe to a randomly named file in a directory from a predefined list, starts it with CreateProcessW, allocates memory with VirtualAlloc, copies in the UPX-packed DLL from resource 'RcDll' and starts a remote thread. The payload, AllaSenha (Access_PC_Client_dll.dll, 32-bit, likely built from KL Gorki source combined with AllaKore and the ServerSocket library), reads browser data for bank credentials and, if none is found, waits for banking activity (target sites, itauaplicativo.exe, saved bank passwords) before contacting C2. Its GeraHost/GeraPorta DGA depends on the execution date and the bank. C2 is raw ASCII over TCP using <|COMMAND|> messages (e.g. <|SENHA|>, <|TRAVAR|>, <|PUXAR-TECLAS|>, <|ITAU-TK-APP|>, <|BB-AMARELO|>). It shows fake 2FA windows (QR code, SMS, in-app token) and a fake bank security-plugin screen and offers remote desktop with keyboard/mouse control. Named banks: Banco do Brasil, Bradesco, Banco Safra, Itau Unibanco, Sicoob, Caixa Economica Federal, with Sicredi and Unicred also appearing in the malware.

Timeline and attribution: HarfangLab saw earlier variants in 2023 delivered via Autodesk A360 Drive and GitHub, and the current chain from about March 2024 (medium confidence). The attacker-controlled WebDAV servers sit in Microsoft IP space (ASN 8075, Brazil) and are short-lived (e.g. 191.232.38.222 was set up the day before and taken down the day after 2024-05-01). HarfangLab found no reliable link to a known threat actor; the username 'bert1m' in LNK metadata and AllaSenha source paths likely indicates a Portuguese-speaking developer with no evidence of being the operator. Per press coverage of Cisco Talos research (which tracks the malware as CarnavalHeist), two Brazilian actors were tied to the campaign through domain-registration mistakes; Talos observed only Brazilian victims. Newly generated C2 hostnames appeared inactive when HarfangLab wrote the report. No CVE is involved.

## MITRE ATT&CK

- T1583.001 Acquire Infrastructure: Domains
- T1566.002 Phishing: Spearphishing Link
- T1204.001 User Execution: Malicious Link
- T1204.002 User Execution: Malicious File
- T1059.003 Command and Scripting Interpreter: Windows Command Shell
- T1059.001 Command and Scripting Interpreter: PowerShell
- T1059.006 Command and Scripting Interpreter: Python
- T1547.001 Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder
- T1055 Process Injection
- T1036.007 Masquerading: Double File Extension
- T1036.003 Masquerading: Rename Legitimate Utilities
- T1027.002 Obfuscated Files or Information: Software Packing
- T1480 Execution Guardrails
- T1555.003 Credentials from Password Stores: Credentials from Web Browsers
- T1056.002 Input Capture: GUI Input Capture
- T1056.001 Input Capture: Keylogging
- T1568.002 Dynamic Resolution: Domain Generation Algorithms
- T1095 Non-Application Layer Protocol
- T1219 Remote Access Tools

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**AllaSenha WebDAV LNK Launcher Running NotaFiscal/c.cmd Script from @80 Share — Exploitation** (`TL-2026-7035-SPL-001`)

Detects the AllaSenha (AllaKore variant, CarnavalHeist) initial execution stage: NotaFiscal.pdf.lnk spawns cmd.exe or powershell.exe with a WebDAV UNC path (host@80) and references the Documentos share, NotaFiscal decoy, or the c.cmd / a3.cmd BPyCode launcher. Behaviour-first: fires on the WebDAV-over-port-80 script launch regardless of the stager IP, which rotates quickly. Maps to T1204.002, T1059.003, T1059.001 and T1036.007.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1204.002, T1059.003, T1059.001, T1036.007
- **Data sources:** sysmon, index=windows sourcetype=XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
- **Severity:** high
- **Confidence:** high

### Splunk SPL

````spl
index=windows sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 (Image="*\\cmd.exe" OR Image="*\\powershell.exe") CommandLine="*@80*" (CommandLine="*NotaFiscal*" OR CommandLine="*Documentos*" OR CommandLine="*c.cmd*" OR CommandLine="*a3.cmd*") ```TL-2026-7035 AllaSenha WebDAV LNK launcher``` | stats count min(_time) as first_seen max(_time) as last_seen values(CommandLine) as command_lines values(ParentImage) as parent_images by host, User | convert ctime(first_seen) ctime(last_seen)
````

### Microsoft KQL

```kql
DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName in~ ("cmd.exe", "powershell.exe")
| where ProcessCommandLine has "@80"
| where ProcessCommandLine has_any ("NotaFiscal", "Documentos", "c.cmd", "a3.cmd")
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine
| order by Timestamp desc
```

### Sigma

```yaml
title: AllaSenha WebDAV LNK Launcher Executing Script From @80 Share
id: 3f6c1d52-8a41-4b7e-9c2d-5e1a7b0d4c11
status: experimental
description: Detects cmd.exe or powershell.exe launched with a WebDAV (@80) UNC path and the NotaFiscal, Documentos, c.cmd or a3.cmd artifacts used by the AllaSenha / CarnavalHeist LNK chain.
references:
  - https://harfanglab.io/insidethelab/allasenha-allakore-variant-azure-c2-steal-banking-latin-america/
  - https://github.com/HarfangLab/iocs/tree/main/TRR240501
author: Threadlinqs Team
date: 2026-11-28
tags:
  - attack.execution
  - attack.t1204.002
  - attack.t1059.003
  - attack.t1059.001
  - attack.defense-evasion
  - attack.t1036.007
logsource:
  category: process_creation
  product: windows
detection:
  selection_img:
    Image|endswith:
      - '\cmd.exe'
      - '\powershell.exe'
  selection_webdav:
    CommandLine|contains: '@80'
  selection_artifact:
    CommandLine|contains:
      - 'NotaFiscal'
      - 'Documentos'
      - '\c.cmd'
      - '\a3.cmd'
  condition: all of selection_*
falsepositives:
  - Administrators running scripts from an internal WebDAV share on port 80 named Documentos
level: high
```

**Known false positives:**

- Administrators legitimately running batch scripts from an internal WebDAV share on port 80 that is named Documentos
- Software deployment tooling that invokes cmd.exe against a WebDAV UNC path

**Tuning notes:** Allow-list internal WebDAV hosts by adding NOT CommandLine="*@80*" exclusions for known corporate server names. Adjust the index and sourcetype to your Sysmon ingestion. Requires Sysmon EventCode 1 with full command-line capture; if the WebClient service is disabled fleet-wide, any hit should be treated as high priority.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- AllaSenha NFS-e Phishing Domains and WebDAV Stager IP Connections — Exploitation (locked: unlock with TL Creds)
- AllaSenha ExecutorLoader Renamed mshta.exe Process Host — Post-Exploitation (locked: unlock with TL Creds)
- AllaSenha Raw TCP C2 to brazilsouth.cloudapp.azure.com from Non-Browser Process — C2 (locked: unlock with TL Creds)
- AllaSenha search: URI Handler Opening WebDAV Share — Exploitation (locked: unlock with TL Creds)
- AllaSenha BPyCode Renamed pythonw.exe Running from C:\Users\Public — Post-Exploitation (locked: unlock with TL Creds)
- AllaSenha ExecutorLoader Staging from GitHub raw Content — C2 / Ingress (locked: unlock with TL Creds)
- AllaSenha BPyCode Run-Key Persistence Pointing to C:\Users\Public — Post-Exploitation (locked: unlock with TL Creds)
- AllaSenha Date-Based DGA Lookup under brazilsouth.cloudapp.azure.com — C2 (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (3 of 27)

Defanged, TLP:CLEAR.

- IP address: `191.232.38[.]222`
- Domain: `nfe-digital[.]digital`
- URL: `hxxps://is[.]gd/As1idV?0192524.3043`

Full set of 27 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [AllaSenha: AllaKore variant leverages Azure cloud C2 to steal banking details in Latin America (TRR240501)](https://harfanglab.io/insidethelab/allasenha-allakore-variant-azure-c2-steal-banking-latin-america/)
- [HarfangLab IOC repository TRR240501](https://github.com/HarfangLab/iocs/tree/main/TRR240501)
- [Brazilian Banks Targeted by New AllaKore RAT Variant Called AllaSenha (The Hacker News)](https://thehackernews.com/2024/05/brazilian-banks-targeted-by-new.html)
- [Novel AllaKore RAT variant sets sights on Brazilian banks (SC Media)](https://www.scworld.com/brief/novel-allakore-rat-variant-sets-sights-on-brazilian-banks)
- [AllaSenha Brazil banking (Anvilogic threat report)](https://www.anvilogic.com/threat-reports/allasenha-brazil-banking)
- [BlackBerry: AllaKore RAT against Mexican banks and cryptocurrency platforms](https://blogs.blackberry.com/en/2024/01/mexican-banks-and-cryptocurrency-platforms-targeted-with-allakore-rat)
- [Cybereason: Brazilian financial malware targeting Europe and South America](https://www.cybereason.com/blog/research/brazilian-financial-malware-banking-europe-south-america)
- [AllaKore_Remote (open-source RAT base)](https://github.com/OneideLuizSchneider/AllaKore_Remote)
- [PythonMemoryModule (in-memory loader used by BPyCode)](https://github.com/naksyn/PythonMemoryModule)
- [ServerSocket library used for remote desktop](https://github.com/haithemnini/ServerSocket)
- [KL Gorki source (AllaSenha code base)](https://github.com/oxahax/Brazilian-Malwares/tree/master/Pascal-Delphi/KL-REMOTA-KL/KL%20Gorki)
- [Microsoft: Windows Search protocol (search: URI)](https://learn.microsoft.com/en-us/windows/win32/shell/search-protocol#examples)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7035
