This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #=====================================================================#===================================================================== | |
| make this dataset query on fortianalyzer more structured and readable:select appcat, sum(bandwidth) as bandwidth from ###(select app, appcat, user_src, sum(traffic_in) as traffic_in, sum(traffic_out) as traffic_out, sum(bandwidth) as bandwidth, sum(sessions) as sessions from ###base(/*tag:rpt_base_t_top_app*/select $flex_timestamp as timestamp, dvid, srcip, dstip, epid, euid, coalesce(nullifna(`user`), nullifna(`unauthuser`), ipstr(`srcip`)) as user_src, service, appid, app, appcat, apprisk, hostname, sum(coalesce(rcvddelta, rcvdbyte, 0)) as traffic_in, sum(coalesce(sentdelta, sentbyte, 0)) as traffic_out, sum(coalesce(sentdelta, sentbyte, 0)+coalesce(rcvddelta, rcvdbyte, 0)) as bandwidth, sum(CASE WHEN (logflag&1>0) THEN 1 ELSE 0 END) as sessions from $log-traffic where $filter and (logflag&(1|32)>0) and nullifna(app) is not null group by timestamp, dvid, srcip, dstip, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ------------------------------------------------------------------------------------------ | |
| get alerts when something abnormal (like a loop or ARP flood attack) | |
| Go to Navigate: Alerts → Alert Rules → Add Rule | |
| Practical Setup in LibreNMS WebUI | |
| Alerts → Alert Rules → Add Rule. | |
| Choose SQL Rule. | |
| Alert Rule for Huge ARP Table |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #=================================================================================================================================== | |
| #ChatGPT | |
| Explain how to send email alerts in nagios with gmail. | |
| To send email alerts in Nagios with Gmail, you will need to configure the email settings in the Nagios configuration file. Here are the steps to configure email alerts in Nagios with Gmail: | |
| Login to your Gmail account and go to ‘My Account’. | |
| Enable the ‘Allow less secure apps’ option. This allows third-party applications like Nagios to access your Gmail account. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #===================================================================== | |
| #ChatGPT | |
| #Explain firewall traffic log which originates from source port 443 and 80 to destination port 22. | |
| A firewall traffic log is a record of network traffic that has been processed by a firewall. It provides information about the source and destination IP addresses, ports, protocol, and other relevant details. | |
| If a firewall traffic log originates from source ports 443 and 80 to destination port 22, it means that the traffic is using the HTTP and HTTPS protocols (which are assigned to ports 80 and 443, respectively) as the source ports to communicate with the SSH protocol (which is assigned to port 22) as the destination port. This type of traffic could indicate that someone is trying to establish a secure shell (SSH) connection to a server using a web browser or other HTTP/HTTPS-based client. | |
| Here's an example of what the firewall traffic log might look like for this type of traffic: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ------------------------------------------------------------------------------------------ | |
| #ChatGPT | |
| #Explain how to investigate an incident as a security engineer where windows events log service restarted. Explain how to find out who restarted windows events log service. | |
| As a security engineer, investigating an incident where the Windows Event Log service has been restarted can involve the following steps: | |
| Collect evidence: The first step is to collect evidence related to the incident. This can involve reviewing logs, examining system configurations, and interviewing relevant personnel. | |
| Review event logs: The Windows Event Log service itself logs events related to its own operation. The logs may contain information about the restart event and who initiated it. Look for Event ID 7036, which indicates that a service has entered the running or stopped state. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ------------------------------------------------------------------------------------------ | |
| What is the relationship between ATT&CK and the Lockheed Martin Cyber Kill Chain®? | |
| ATT&CK and the Cyber Kill Chain are complementary. ATT&CK sits at a lower level of definition to describe adversary behavior than the Cyber Kill Chain. ATT&CK Tactics are unordered and may not all occur in a single intrusion because adversary tactical goals change throughout an operation, whereas the Cyber Kill Chain uses ordered phases to describe high level adversary objectives. | |
| https://attack.mitre.org/resources/faq/#faq-4-0-header | |
| ---------------------------------------------------------------------------------------- | |
| What is the relationship between ATT&CK and the Diamond Model? | |
| ATT&CK and the Diamond Model are complementary. ATT&CK documents detailed adversary behavior while the Diamond Model is helpful if you're trying to cluster intrusions. There are cases where they may be used together. For example, ATT&CK-mapped techniques may |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ------------------------------------------------------------------------------------------ | |
| #ChatGPT | |
| When deploying active-passive high availability (HA) FortiGate devices in AWS, you should use the Unicast FGCP feature. | |
| The Unicast FGCP feature is used when deploying active-passive high availability (HA) FortiGate devices in AWS because it provides a simpler and more reliable solution in this scenario. With Unicast FGCP, the active FortiGate unit sends unicast heartbeat packets to the standby unit, which then responds to confirm that it is still alive. This provides a simple and reliable mechanism for the active unit to determine whether the standby unit is available to take over in case of failure. In addition, Unicast FGCP allows for more efficient use of network resources, as it minimizes the number of packets sent between the FortiGate units. | |
| The Multicast FGCP feature is typically preferred over the Unicast FGCP feature when deploying active-active high availability (HA) FortiGate devices in AWS becau |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ============================================================================ | |
| #ChatGPT | |
| #Explain how dns enumeration is done. | |
| DNS enumeration is the process of discovering and gathering information about the DNS (Domain Name System) records associated with a specific domain name. This can be useful for various purposes, including reconnaissance, vulnerability assessment, and penetration testing. | |
| Here are the steps typically involved in DNS enumeration: | |
| Identify the target domain name: The first step is to identify the target domain name that you want to enumerate. This could be the domain name of a website, a company, or any other entity that has a public presence on the internet. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ------------------------------------------------------------------------------------------ | |
| #troubleshooting | |
| # service status all | |
| Policy server [ cpass-policy-server ] is running | |
| TACACS server [ cpass-tacacs-server ] is running | |
| Radius server [ cpass-radius-server ] is running | |
| Async DB write service [ cpass-dbwrite-server ] is running | |
| DB replication service [ cpass-replication ] is running | |
| DB change notification server [ cpass-dbcn-server ] is running |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ========================================================================================================== | |
| #Explain how to use SSL Certificate when connecting with RDP in Windows 11 | |
| Obtain an SSL Certificate: You can obtain an SSL certificate from a trusted certificate authority or generate a self-signed certificate. | |
| Install the SSL Certificate: Install the SSL certificate on the computer that is hosting the Remote Desktop Services (RDS) role. You can install the certificate using the Certificate snap-in in the Microsoft Management Console (MMC). | |
| Configure the Remote Desktop Session Host: You need to configure the Remote Desktop Session Host to use the SSL certificate for encryption. | |
| a. Open the Remote Desktop Session Host Configuration console by typing "tsconfig.msc" in the Run dialog box. |