Skip to content

Instantly share code, notes, and snippets.

@githubfoam
githubfoam / Threat Hunting - web server hosted in the Amazon cloud launched a new process named sqlserver.exe
Last active July 7, 2023 05:59
Threat Hunting - web server hosted in the Amazon cloud launched a new process named sqlserver.exe
#===================================================================================================================================
#ChatGPT https://twitter.com/chrissanders88/status/1628050893315899393
Explain how to do threat hunting whether an incident occurred when One of your web servers hosted in the Amazon cloud launched a new process named sqlserver.exe.
Threat hunting is the process of proactively searching for malicious activity or threats within an organization's IT infrastructure. In the case of an incident where a new process named sqlserver.exe was launched on a web server hosted in the Amazon cloud, the following steps can be taken to perform threat hunting:
Gather information: The first step is to gather information about the process and its associated files. This can include the location of the file, the file size, the file hash, and any other relevant information.
Analyze the process behavior: The next step is to analyze the behavior of the process. This can include determining
@githubfoam
githubfoam / Threat Hunting - a host made a few HTTP requests with no User Agent string (field is empty)
Created March 13, 2023 06:35
Threat Hunting - a host made a few HTTP requests with no User Agent string (field is empty)
#===================================================================================================================================
#ChatGPT https://twitter.com/chrissanders88/status/1630581503506935811
Explain how to do threat hunting whether an incident occurred when Proxy logs indicate a host on your network made a few HTTP requests with no User Agent string (field is empty)
Threat hunting is the process of proactively searching for malicious activity or threats within an organization's IT infrastructure. In the case of an incident where proxy logs indicate a host on your network made HTTP requests with no User Agent string, the following steps can be taken to perform threat hunting:
Identify the host: The first step is to identify the host that made the HTTP requests. This can be done by reviewing the proxy logs and identifying the IP address of the host.
Analyze the requests: The next step is to analyze the HTTP requests made by the host. This can include analyzing the target URLs, the reque
@githubfoam
githubfoam / Threat Modelling - Proxy logs indicate a host on your network made a few HTTP requests with no User Agent string (field is empty).
Created March 13, 2023 06:43
Threat Modelling - Proxy logs indicate a host on your network made a few HTTP requests with no User Agent string (field is empty).
#===================================================================================================================================
#ChatGPT
Threat modeling is a structured approach to identifying and mitigating potential threats to a system or application. In the case of Proxy logs indicating a host on your network made HTTP requests with no User Agent string, the following steps can be taken to perform threat modeling:
Define the system or application: The first step is to define the system or application that is being modeled. This can include identifying the components, services, and data flows that are involved.
Identify the assets: The next step is to identify the assets that are being protected. This can include data, applications, systems, and infrastructure.
Define the threats: Threats should be identified and defined based on the identified assets. In this case, threats can include attacks that exploit vulnerabilities in the system, such as SQL injection attacks, cross-site scripti
@githubfoam
githubfoam / Threat Modelling - fortigate firewall
Created March 13, 2023 06:46
Threat Modelling - fortigate firewall
#===================================================================================================================================
#ChatGPT
Explain how to perform threat modelling when identifying and mitigating potential threats to fortigate firewall.
Performing threat modeling for FortiGate firewall involves a structured approach to identifying and mitigating potential threats to the system. The following steps can be taken to perform threat modeling for FortiGate firewall:
Define the system: The first step is to define the FortiGate firewall system that is being modeled, including its components, services, and data flows.
Identify the assets: The next step is to identify the assets that are being protected by the FortiGate firewall. This can include the network infrastructure, servers, endpoints, applications, and data.
@githubfoam
githubfoam / Threat Modelling - apply Palo alto firewall CIS benchmark to fortigate firewall
Created March 13, 2023 06:50
Threat Modelling - apply Palo alto firewall CIS benchmark to fortigate firewall
#===================================================================================================================================
#ChatGPT
Explain how to apply Palo alto firewall CIS benchmark to fortigate firewall
The Center for Internet Security (CIS) provides a set of security benchmarks for various IT systems, including firewall systems. The CIS benchmarks for firewall systems are designed to help organizations implement best practices for securing their firewall infrastructure.
Although the CIS benchmarks are specific to Palo Alto firewalls, they can be used as a guide for securing other firewall systems such as FortiGate. The following steps can be taken to apply the Palo Alto firewall CIS benchmark to a FortiGate firewall:
Review the CIS benchmark: Review the CIS benchmark for Palo Alto firewalls and identify the relevant security controls that can be applied to the FortiGate firewall. The CIS benchmark can be downloaded from the CIS website.
@githubfoam
githubfoam / fortigate debug flow cheat sheet
Last active August 18, 2026 16:28
fortigate debug flow cheat sheet
#=====================================================================
#ChatGPT
#=====================================================================
#Debug the packet flow when network traffic is not entering and leaving the FortiGate as expected.
#https://docs.fortinet.com/document/fortigate/7.2.3/administration-guide/054688/debugging-the-packet-flow
# GUI https://docs.fortinet.com/document/fortigate/7.2.3/administration-guide/038044/using-the-debug-flow-tool
#=====================================================================
#If you encounter a different protocol number, you can refer to the IANA Protocol Numbers registry
Assigned Internet Protocol Numbers
@githubfoam
githubfoam / web app security cheat sheet
Last active March 23, 2026 03:33
web app security cheat sheet
------------------------------------------------------------------------------------------
chromedriver
https://chromedriver.chromium.org/downloads/version-selection
https://chromedriver.chromium.org/downloads
https://googlechromelabs.github.io/chrome-for-testing/
------------------------------------------------------------------------------------------
#ChatGPT
@githubfoam
githubfoam / hp aruba instant on cheat sheet
Created March 16, 2023 08:25
hp aruba instant on cheat sheet
#=====================================================================
#ChatGPT
Explain how to configure web filter in hp aruba wireless access points.
HP Aruba wireless access points support web filtering using the Aruba Instant software, which can be configured through the Aruba Instant web interface. Here are the general steps to configure web filtering in HP Aruba wireless access points:
Login to the Aruba Instant web interface using an administrative account.
Navigate to the "Security" tab, and then click on "Content Filtering" from the drop-down menu.
@githubfoam
githubfoam / Investigation Path - open RDP service on public IP Range
Last active July 7, 2023 06:12
Investigation Path - open RDP service on public IP Range
-------------------------------------------------------------------------------------------------------------------
#ChatGPT
Explain how to detect open RDP service in public IP range
Detecting open RDP (Remote Desktop Protocol) services in a public IP range involves scanning the network to identify systems that have RDP ports (TCP port 3389) open and listening for connections. Here are the general steps to detect open RDP services in a public IP range:
Choose a scanning tool: You will need to choose a scanning tool to scan the network range for open RDP ports. There are several tools available, including Nmap, Advanced IP Scanner, and Angry IP Scanner.
Specify the IP range: Identify the public IP range you want to scan for open RDP services. You can either scan the entire range or specify a subset of IPs that you suspect may have RDP services open.
@githubfoam
githubfoam / wild card certificate cheat sheet
Created March 17, 2023 06:48
wild card certificate cheat sheet
-------------------------------------------------------------------------------------------------------------------
#ChatGPT
Explain wildcard certificate.
A wildcard certificate is a type of SSL/TLS certificate that can secure multiple subdomains of a domain using a single certificate. It is called a "wildcard" because it uses a wildcard character (*) to represent any subdomain name.
For example, if you have a wildcard certificate for "*.example.com", it can secure any subdomain of example.com, such as mail.example.com, blog.example.com, and shop.example.com. This can be particularly useful for organizations that have many subdomains, as it eliminates the need to obtain and manage multiple certificates for each subdomain.
However, it's important to note that wildcard certificates can only secure subdomains that share the same second-level domain name. For example, a wildcard certificate for ".example.com" would not secure subdomains of another domain, such as ".example.org". Additionally, wildcard certifi