Hacking Articles Tips Tricks Videos Tutorials
470 subscribers
66.1K photos
15 videos
157 files
132K links
Exploit
Pentesting
Hacking
Red Team
Blue Team
Kali Linux
Bug Bounty
Black Hat
Cyber security etc

@Hacking_Video
@Hacking_attack
Download Telegram
Hacking Articles Tips Tricks Videos Tutorials
Photo
KitPloit - PenTest Tools!
RPC Firewall - Stopping Lateral Movement via the RPC Firewall

https://blogger.googleusercontent.com/img/a/AVvXsEgyJQR_YPejfXMdrIM0M5D5bgEI1Fbqpqepa5w-6VmVa2x1wS91vZZT9UzZ8XioCQVOghII8P_M04H0InXGoOlREM2I7RvbDkWxI3AtQGlST-RXtNJDOSEBYsbVI7QFeHR1KqSJAoZ8tjQtIoIlhyY21Q0Xj1JpaJzQSYZFPQiAgmwZNoR4xKkKaokhow=w640-h286 I Need More InformationCheck out our RPC Firewall blog post to gain better understanding of RPC, RPC attacks and the solution: the RPC Firewall. For any questions, issues, or simlpy to shout out - we would love to hear from you! Contact us at support@zeronetworks.com Why should I care?RPC is the underlying mechanism which is used for numerous lateral movement techniques, reconnaisense, relay attacks, or simply to exploit vulnerable RPC services.

DCSync attack? over RPC. Remote DCOM? over RPC. WMIC? over RPC. SharpHound? over RPC. PetitPotam? over RPC. PsExec? over RPC. ZeroLogon? over RPC... well, you get the idea :) What is it used for?ResearchInstall the RPC Firewall and configure it to audit all remote RPC calls. Once executing any remote attack tools, you will see which RPC UUIDs and Opnums were called remotely. Remote RPC Attacks DetectionWhen the RPC Firewall is configured to audit, it write events to the Windows Event Log.

Forward this log to your SIEM, and use it to create baselines of remote RPC traffic for your servers.

Once an abnormal RPC call is audited, use it to trigger an alert for your SOC team. Remote RPC Attacks ProtectionThe RPC Firewall can be configured to block & audit only potentially malicious RPC calls. All other RPC calls are not audited to reduce noise and improve performance.

Once a potentially malicious RPC call is detected, it is blocked and audited. This could be used to alert your SOC team, while keeping your servers protected. What are the RPC Firewall Components?It is made up from 3 components:

1. RpcFwManager.exe - In charge of managing the RPC Firewall.
2. RpcFirewall.dll - Injected DLL which performs the audit & filtering of RPC calls.
3. RpcMessages.dll - A common library for sharing functions, and logic that writes data into Windows Event Viewer. How to use?Installing / UninstallingInstallation simply drops the RPC Firewall DLLs into the %SystemRoot%\System32, and configures the RPCFWP application log for the Event Viewer. RpcFwManager.exe /installUninstalling does the opposite. RpcFwManager.exe /uninstallProtecting Process(es)The RpcFwManager tried to inject the rpcFirewall.dll only to processes which have the RPCRT4.DLL loaded into them.

Once the rpcFirewall.dll is loaded, it verifies that the host process has a valid RPC interface, and is listening for remote connections.

Otherwise, the rpcFirewall.dll unloaded itself from the target process.

If the process is a valid RPC server, the rpcFirewall starts to audit & monitor incoming RPC calls, according to the configuration file.

To protect a single process by pid: RpcFwManager.exe /pid To protect a single process by name: RpcFwManager.exe /process To protect all process, simply leave the or parametes blank. RpcFwManager.exe /process
RpcFwManager.exe /pid
Unprotecting ProcessesTo disable the RPC Firewall, either uninstall it, or use the unprotect parameter: RpcFwManager.exe /unprotectThis will unload the rpcFirewall.dll from all processes. ConfigurationThe rpcFwManager.exe looks for a RpcFw.conf file, in the same directory of the executable. This file uses the following configuration options:

* uuid -> match a specific uuid
* opnum -> match a RPC opnum
* addr -> match a remote IP address
* action -> can be either allow or block (default allow)
* audit -> true or false, controls [...]

___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
KitPloit - PenTest Tools! RPC Firewall - Stopping Lateral Movement via the RPC Firewall https://blogger.googleusercontent.com/img/a/AVvXsEgyJQR_YPejfXMdrIM0M5D5bgEI1Fbqpqepa5w-6VmVa2x1wS91vZZT9UzZ8XioCQVOghII8P_M04H0InXGoOlREM2I7RvbDkWxI3AtQGlST-RXtNJDOS…
whether events are written to the RPCFWP log (default false)
* verbose -> when true, outputs debug informaiton for specific RPC calls (default false)

The configuration order is important, as the first match determines the outcome of the RPC call.

For example, the following configuration will protect a DC from a DCSync attack by disabling the MS-DRSR UUID from non-domain machines. Also, notice that audit is enabled only for blocked MS-DRSR attempts, which could alert your SOC to a potential attack! uuid:e3514235-4b06-11d1-ab04-00c04fc2dcd2 addr:Whenever the configuration changes, you need to notify the rpcFirewall.dll via the update command: RpcFwManager.exe /updateCan I Contribute?Yes! Don't be shy to do a pull request. I want RPC Firewall to do more things!We want this also! please reach out to us with any thoughts, ideas or issues you are having: support@zeronetworks.com Is there a License?For more details see LICENSE. Download Rpcfirewall

___________________________
@hacking_Attack
@Hacking_Video
Why should I care?RPC is the underlying mechanism which is used for numerous lateral movement techniques, reconnaisense, relay attacks, or simply to exploit vulnerable (https://www.kitploit.com/search/label/Vulnerable) RPC services.DCSync attack? over RPC. Remote DCOM? over RPC. WMIC? over RPC. SharpHound? over RPC. PetitPotam? over RPC. PsExec? over RPC. ZeroLogon? over RPC... well, you get the idea :)What is it used for?ResearchInstall the RPC Firewall (https://www.kitploit.com/search/label/Firewall) and configure it to audit all remote RPC calls. Once executing any remote attack tools, you will see which RPC UUIDs and Opnums were called remotely.Remote RPC Attacks DetectionWhen the RPC Firewall is configured to audit, it write events to the Windows Event Log.Forward this log to your SIEM, and use it to create baselines of remote RPC traffic (https://www.kitploit.com/search/label/Traffic) for your servers.Once an abnormal RPC call is audited, use it to trigger an alert for your SOC team.Remote RPC Attacks ProtectionThe RPC Firewall can be configured to block & audit only potentially malicious RPC calls. All other RPC calls are not audited to reduce noise and improve performance.Once a potentially malicious RPC call is detected, it is blocked and audited. This could be used to alert your SOC team, while keeping your servers protected.What are the RPC Firewall Components?It is made up from 3 components:RpcFwManager.exe - In charge of managing the RPC Firewall.RpcFirewall.dll - Injected DLL which performs the audit & filtering of RPC calls.RpcMessages.dll - A common library (https://www.kitploit.com/search/label/Library) for sharing functions, and logic that writes data into Windows Event Viewer.How to use?Installing / UninstallingInstallation simply drops the RPC Firewall DLLs into the %SystemRoot%\System32, and configures the RPCFWP application log for the Event Viewer.RpcFwManager.exe /installUninstalling does the opposite.RpcFwManager.exe /uninstallProtecting Process(es)The RpcFwManager tried to inject the rpcFirewall.dll only to processes which have the RPCRT4.DLL loaded into them.Once the rpcFirewall.dll is loaded, it verifies that the host process has a valid RPC interface, and is listening for remote connections.Otherwise, the rpcFirewall.dll unloaded itself from the target process.If the process is a valid RPC server, the rpcFirewall starts to audit & monitor incoming RPC calls, according to the configuration file.To protect a single process by pid: ">RpcFwManager.exe /pid To protect a single process by name: ">RpcFwManager.exe /process To protect all process, simply leave the or parametes blank.RpcFwManager.exe /process
RpcFwManager.exe /pidUnprotecting ProcessesTo disable the RPC Firewall, either uninstall it, or use the unprotect parameter:RpcFwManager.exe /unprotectThis will unload the rpcFirewall.dll from all processes.ConfigurationThe rpcFwManager.exe looks for a RpcFw.conf file, in the same directory (https://www.kitploit.com/search/label/Directory) of the executable. This file uses the following configuration options:uuid -> match a specific uuidopnum -> match a RPC opnumaddr -> match a remote IP addressaction -> can be either allow or block (default allow)audit -> true or false, controls whether events are written to the RPCFWP log (default false)verbose -> when true, outputs debug informaiton for specific RPC calls (default false)The configuration order is important, as the first match determines the outcome of the RPC call.For example, the following configuration will protect a DC from a DCSync attack by disabling the MS-DRSR UUID from non-domain machines. Also, notice that audit is enabled only for blocked MS-DRSR attempts, which could alert your SOC to a potential attack! action:allow uuid:e3514235-4b06-11d1-ab04-00c04fc2dcd2 addr: action:allow uuid:e3514235-4b06-11d1-ab04-00c04fc2dcd2 action:block audit:true ">uuid:e3514235-4b06-11d1-ab04-00c04fc2dcd2 addr: action:allow

___________________________
@hacking_Attack
@Hacking_Video
uuid:e3514235-4b06-11d1-ab04-00c04fc2dcd2 addr: action:allow
uuid:e3514235-4b06-11d1-ab04-00c04fc2dcd2 action:block audit:trueWhenever the configuration changes, you need to notify the rpcFirewall.dll via the update command:RpcFwManager.exe /updateCan I Contribute?Yes! Don't be shy to do a pull request.I want RPC Firewall to do more things!We want this also! please reach out to us with any thoughts, ideas or issues you are having: support@zeronetworks.com (mailto:support@zeronetworks.com)Is there a License?For more details see LICENSE (https://github.com/zeronetworks/rpcfirewall/blob/master/LICENSE).

Download Rpcfirewall (https://github.com/zeronetworks/rpcfirewall)

___________________________
@hacking_Attack
@Hacking_Video
Dark Reading: Attacks/Breaches
CISOs Plan What to Buy With Funds From the Infrastructure Bill

CISOs welcome the cybersecurity funding allocated under the Infrastructure Investment and Jobs Act, but say it’s not perfect because it doesn't address a key issue: people.
Module-1 | Introduction -Pentesting & Bypassing Cloud Web Application Firewall of Major Clouds

Why you should not trust the cloud WAF?Continue reading on Medium »
Read more...
hacking: security in practice
Is there a way to tell if an XSS vulnerability is serious or not?

Recently, I was looking for vulnerabilities on a website which I will not name. I came across a search bar through which I used inspect element to change the maxlength of the input.

When I entered a certain payload which was an alert(document.cookie) the alert came up with the cookie in it.

I submitted this vulnerability to the program and they said it’s a false positive. I’d love to know how this is since the search bar is definitely running the code.

Any guidance appreciated. I am just getting into bug bounties and hacking so I could definitely have made a mistake.

submitted by /u/Gamestonk_CEO
[link] [comments]

___________________________
@hacking_Attack
@Hacking_Video