<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abdelhadi ilyes on Medium]]></title>
        <description><![CDATA[Stories by Abdelhadi ilyes on Medium]]></description>
        <link>https://medium.com/@ilyes_abdelhadi?source=rss-52904e574628------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*CZcm42Nct86BolIHp2zeZg.jpeg</url>
            <title>Stories by Abdelhadi ilyes on Medium</title>
            <link>https://medium.com/@ilyes_abdelhadi?source=rss-52904e574628------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 13:28:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ilyes_abdelhadi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Mitre Att&ck]]></title>
            <link>https://medium.com/@ilyes_abdelhadi/mitre-att-ck-c8e39e07c608?source=rss-52904e574628------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8e39e07c608</guid>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[mitre-attack]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[incident-response]]></category>
            <dc:creator><![CDATA[Abdelhadi ilyes]]></dc:creator>
            <pubDate>Mon, 21 Aug 2023 17:47:00 GMT</pubDate>
            <atom:updated>2023-08-21T17:47:00.473Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*fQOoU3iT33ZI3Jtf4SiufQ.png" /></figure><p>Hello it’s ilyes today i am back with another very important approach in cyber security which is Mitre Att&amp;ck</p><h3>MITRE ATT&amp;CK</h3><h4>MITRE</h4><p>MITRE Corporation is a non-profit organization that plays a pivotal role in advancing cybersecurity, among other domains. One of its most notable contributions is the development and maintenance of the Common Vulnerabilities and Exposures (CVE) system. CVE serves as a standardized dictionary of known vulnerabilities in software and hardware products, assigning each vulnerability a unique alphanumeric identifier known as a CVE ID. it enables cybersecurity practitioners, researchers, vendors, and organizations to reference and communicate vulnerabilities consistently. These IDs are utilized in various contexts, from discussing vulnerabilities to tracking their impact, severity, and available fixes. CVE entries encompass crucial details about vulnerabilities, aiding in the understanding of their potential risks and mitigations.</p><h4>ATT&amp;CK</h4><p>ATT&amp;CK (Adversarial Tactics, Techniques, and Common Knowledge) is an extensive framework and knowledge repository that offers insights into the methods, approaches, and practices employed by cyber adversaries throughout different phases of an attack process. It organizes actual cyber threat behaviors into a structured matrix, enabling organizations to better comprehend and enhance their defensive strategies by outlining potential attack paths and facilitating the simulation and evaluation of their security measures. ATT&amp;CK encompasses a diverse array of attack tactics across various platforms and settings, making it a valuable tool for bolstering cybersecurity awareness and readiness</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rrnJAzM2JR1pIQqsMubxQA.png" /></figure><p>The MITRE ATT&amp;CK framework comprises a variety of components referred to as Tactics, Techniques, and Procedures TTPs. Each of these elements plays a distinct role in understanding and categorizing cyber threat behaviors. <strong>Tactics</strong>, within the ATT&amp;CK framework represents the high-level objectives that adversaries aim to achieve during an attack. These objectives encompass goals like.</p><p><strong>Reconnaissance</strong> often referred to as “recon,” is a preliminary phase in the cyber attack lifecycle where threat actors gather information and intelligence about a target system, network, or organization. This process involves actively seeking out details such as IP addresses, domain names, network configurations, and other relevant data to better understand the target’s vulnerabilities. Example of technic used <strong>Active Scanning.<br>Resource development</strong> can encompass activities such as building advanced tools, software, databases, documentation, and knowledge repositories that aid in threat detection, incident response, and overall security operations. This can involve creating custom scripts, applications, or frameworks to automate tasks, developing threat intelligence feeds, generating rule sets for intrusion detection systems, and crafting playbooks for incident response workflows. Example of technic used <strong>Acquire Infrastructure.<br>Initial access</strong> refers to the initial point of entry that an attacker gains into a target network, system, or environment during a cyber attack. It represents the initial foothold that allows the attacker to establish a presence and start their malicious activities. Example of technic used <strong>Phishing.<br>Execution</strong> signifies the act of initiating malicious code or commands within a target system or network. This step is pivotal for threat actors as it enables them to accomplish their goals, which could encompass unauthorized entry, data extraction, or causing disruptions. Example of technic used <strong>Scheduled Task/Job.<br>Persistence</strong> refers to the strategies utilised by malicious actors to uphold their unauthorised presence within a compromised network or system for a prolonged duration. The goal of achieving persistence is to sustain control and enable ongoing malicious actions, all while evading detection. This entails setting up covert mechanisms, such as concealed backdoors or scheduled tasks, that permit reentry even after system restarts or security measures are enacted. Example of technic used <strong>Create Account.<br>Privilege escalation</strong> refers to the process by which threat actors increase their level of access and control over a compromised system or network. This involves exploiting vulnerabilities or weaknesses in order to attain higher levels of authority than originally granted. Privilege escalation enables attackers to surpass limitations and gain access to sensitive resources, data, and functionalities that are otherwise restricted to ordinary users or lower-level privileges. Example of technic used <strong>Create or Modify System Process.<br>Defense evasion</strong> refers to circumvent or bypass security measures and detection mechanisms. These actions are taken to avoid being detected by security tools, evade monitoring, and remain hidden while carrying out malicious activities. Defense evasion techniques can include manipulating or disabling security software, utilizing encryption, disguising malicious files, or employing obfuscation methods to mask the presence of malicious code or behavior. Example of technic used <strong>Rootkit.<br>Credential access</strong> pertains to the actions taken by adversaries to obtain and utilise valid usernames and passwords, tokens, or other authentication credentials, these credentials can provide unauthorized access to systems, networks, applications, or sensitive data. Threat actors may use various techniques, such as brute-force attacks, credential stuffing, password spraying, or exploiting weak authentication mechanisms, to gain access to valid credentials. Once acquired, these credentials enable adversaries to move laterally within a network, escalate privileges, and execute malicious activities while appearing legitimate. Example of technic used <strong>Brute Force.<br>Discovery</strong> refers to the actions taken by threat actors to gather information about a target environment, this information-seeking process involves identifying and cataloging details about the targeted systems, networks, applications, and services. Adversaries aim to gain a comprehensive understanding of the victim’s infrastructure, including its configuration, relationships, and potential vulnerabilities. Example of technic used <strong>Account Discovery.<br>Lateral movement </strong>refers to the progression of threat actors across a target environment, this movement involves moving horizontally within a network, from one system or network segment to another to achieve their objectives. Lateral movement typically occurs after an initial compromise and is a critical step for attackers to access valuable resources, expand their control, and escalate privileges within the network. Threat actors utilise various techniques and tools to navigate laterally, such as exploiting vulnerabilities, using stolen credentials, leveraging remote desktop protocols, or deploying malicious software to propagate across systems. Example of technic used <strong>Exploitation of Remote Services.<br>Collection</strong> pertains to the activities undertaken by threat actors to gather valuable information and data from compromised systems or networks. This phase involves systematically extracting relevant files, credentials, configurations, and sensitive data that align with the attackers’ objectives. Collection encompasses the organization and aggregation of this pilfered information which may be subsequently used for exfiltration, further exploitation, or to aid in achieving adversary goals. The purpose of the collection phase is to amass intelligence that aids adversaries in moving closer to fulfilling their mission, whether it involves espionage, financial gain, or disruption. Example of technic used <strong>Video Capture.<br>command and control C&amp;C </strong>refers to the methods and infrastructure that adversaries employ to communicate with compromised systems or networks under their control. It serves as a central element in carrying out malicious activities. C2 enables threat actors to issue commands, receive responses, and orchestrate their attacks remotely, allowing them to maintain persistence, exfiltrate data, distribute malware, and further exploit compromised environments. The C2 infrastructure can include domains, IP addresses, servers, and communication protocols that adversaries manipulate to establish covert and often encrypted connections. The objective of command and control is to provide adversaries with a means to exert remote control over compromised systems while evading detection by security defenses. Example of technic used <strong>Data Obfuscation.<br>Exfiltration</strong> refers to the unauthorised extraction or transfer of sensitive data from a compromised system or network to an external location controlled by threat actors. It is a critical phase of a cyber attack where adversaries steal valuable information, such as proprietary data, intellectual property, or personal user data. Exfiltration methods can vary, including data compression, encryption, covert channels, or tunneling, which enable the stolen information to be transferred without raising suspicion. The goal of exfiltration is to successfully remove valuable data from the target environment and deliver it to the attackers, often bypassing security measures and detection mechanisms. Example of technic used <strong>Transfer Data to Cloud Account.<br>Impact</strong> refers to the consequences and outcomes resulting from a successful cyber attack. It encompasses the potential harm or damage that an adversary’s actions may inflict on an organization’s systems, data, operations, reputation, and overall business continuity. The impact of an attack can vary widely, ranging from minor disruptions to critical infrastructure failures, financial losses, regulatory non-compliance, and compromise of sensitive information. Understanding the potential impact of an attack is crucial for organizations to prioritize their cybersecurity efforts, allocate resources effectively, and implement appropriate mitigation strategies to minimise the potential harm caused by adversaries. Example of technic used <strong>Account Access Removal.</strong></p><h3>Mitigation</h3><p>Let’s take an example initial access tactic is referenced by <strong>TA0001</strong>, the TA in the beginning stands for tactic and the number is it unique ID of initial access, same for every other tactic exists, in the other hand we have <strong>T1566,</strong> the T referenced to Technic used which is phishing attack and 1566 is its unique ID, same thing for other technics. moving to procedures and stay in the same TTP for example <strong>G0001</strong>, the G stands for procedure it can be also <strong>S </strong>and the number is always the unique ID, this procedure called <strong>AXIOM </strong>and it is a suspected Chinese cyber espionage group.<br>Mitre Att&amp;ck open source module is very powerful, it is used by many incident response or threat hunters with many systems for example SIEM, XDR, EDR. They add in their rules of detection</p><h4>Brute force tag detection:</h4><p>&lt;Mitre&gt; <strong>T1110 </strong>&lt;/Mitre&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xtawqQT4IKLkP1CWzwlcLg.png" /><figcaption>example of Mitre Att&amp;ck in wazuh rule</figcaption></figure><p>Thank you, if you have any question do not hesitate to contact me!</p><h3>References</h3><ul><li><a href="https://attack.mitre.org/">MITRE ATT&amp;CK®</a></li><li><a href="https://cve.mitre.org/">CVE - CVE</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8e39e07c608" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wazuh & Shuffle Integration]]></title>
            <link>https://medium.com/@ilyes_abdelhadi/wazuh-shuffle-integration-3dc0b7db439?source=rss-52904e574628------2</link>
            <guid isPermaLink="false">https://medium.com/p/3dc0b7db439</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <dc:creator><![CDATA[Abdelhadi ilyes]]></dc:creator>
            <pubDate>Thu, 17 Aug 2023 14:52:29 GMT</pubDate>
            <atom:updated>2023-08-17T14:52:29.028Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*md1RHfEU-aYjG04eLnM1oA.png" /></figure><p>Hello, in previous sections we have seen <a href="https://medium.com/@ilyes_abdelhadi_86557/installing-wazuh-on-ubuntu-system-using-docker-e13a452723c6">Wazuh XDR(Extended Detection Response)</a> tool as well as <a href="https://medium.com/@ilyes_abdelhadi_86557/installing-shuffle-on-ubuntu-system-using-docker-42798ecb5297">Shuffle SOAR(security orchestration, automation and response)</a> tool, today we’re going through the integration between them!</p><h3>Wazuh</h3><p>Wazuh is an open-source security platform that combines intrusion detection, log management, and vulnerability assessment. It includes a central manager, lightweight agents for host monitoring, and a comprehensive ruleset. With real-time monitoring and analysis, Wazuh helps organizations detect and respond to security threats effectively. It offers a user-friendly interface, supports integration with other tools, and enhances overall security posture.</p><h3>Shuffle</h3><p>Shuffle SOAR is a powerful open source platform that centralizes and automates security operations. It integrates various security tools, orchestrates incident response workflows, and automates routine tasks through predefined playbooks. With advanced intelligence and reporting capabilities, it empowers cybersecurity professionals to respond to security incidents effectively and efficiently, ultimately strengthening an organization’s security posture.</p><p>First of all we open our Shuffle workflow named Wazuh integration test and copy webhook url</p><blockquote>https://&lt;ip-adress&gt;:&lt;port&gt;/api/v1/hooks/webhook_18cdc939-5e7b-428e-b82f-e1481ffc8fe6</blockquote><p>Get an execution terminal in docker first using the following command</p><blockquote>docker ps</blockquote><p>Copy the hash value of Wazuh docker-image</p><blockquote>docker exec -it &lt;hash-wazuh-docker-image&gt; /bin/bash</blockquote><p>Go to ossec.conf file in <strong>/var/ossec/etc/ossec.conf </strong>and then past this integration XML code</p><pre>&lt;integration&gt;<br>  &lt;name&gt; shuffle-integration &lt;/name&gt;<br>  &lt;hook_url&gt;https://&lt;ip-adress&gt;:&lt;port&gt;/api/v1/hooks/webhook_18cdc939-5e7b-428e-b82f-e1481ffc8fe6&lt;/hook_url&gt;<br>  &lt;level&gt;3&lt;/level&gt; &lt;!-- you can use &lt;rule_id&gt; &lt;/rule_id&gt; instead of &lt;level&gt;--&gt;<br>  &lt;alert_format&gt;json&lt;/alert_format&gt;<br>&lt;/integration&gt;</pre><p><strong>name: </strong>is the name of the and integration</p><p><strong>hook_url: </strong>the webhook url in order to request reception</p><p><strong>level: </strong>captures only level 3 and above</p><p><strong>alert_format: </strong>response in json format rest API</p><p>Now we need to put the script integration that named exactly as our XML name<strong>, </strong>go into <strong>/var/ossec/integrations </strong>and create file <strong>shuffle-integration.py</strong></p><pre>#!/usr/bin/env python3<br># Created by Shuffle, AS. &lt;frikky@shuffler.io&gt;.<br># Based on the Slack integration using Webhooks<br><br>import json<br>import sys<br>import time<br>import os<br><br>try:<br>    import requests<br>    from requests.auth import HTTPBasicAuth<br>except Exception as e:<br>    print(&quot;No module &#39;requests&#39; found. Install: pip install requests&quot;)<br>    sys.exit(1)<br><br># Global vars<br>debug_enabled = False <br>pwd = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))<br>json_alert = {}<br>now = time.strftime(&quot;%a %b %d %H:%M:%S %Z %Y&quot;)<br><br># Set paths<br>log_file = &#39;{0}/logs/integrations.log&#39;.format(pwd)<br><br>try:<br>    with open(&quot;/tmp/shuffle_start.txt&quot;, &quot;w+&quot;) as tmp:<br>        tmp.write(&quot;Script started&quot;)<br>except:<br>    pass<br><br><br>def main(args):<br>    debug(&quot;# Starting&quot;)<br><br>    # Read args<br>    alert_file_location = args[1]<br>    webhook = args[3]<br><br>    debug(&quot;# Webhook&quot;)<br>    debug(webhook)<br><br>    debug(&quot;# File location&quot;)<br>    debug(alert_file_location)<br><br>    # Load alert. Parse JSON object.<br>    try:<br>        with open(alert_file_location) as alert_file:<br>            json_alert = json.load(alert_file)<br>    except:<br>        debug(&quot;# Alert file %s doesn&#39;t exist&quot; % alert_file_location)<br><br>    debug(&quot;# Processing alert&quot;)<br>    try:<br>        debug(json_alert)<br>    except Exception as e:<br>        debug(&quot;Failed getting json_alert %s&quot; % e)<br>        sys.exit(1)<br><br>    debug(&quot;# Generating message&quot;)<br>    msg = generate_msg(json_alert)<br>    if isinstance(msg, str):<br>        if len(msg) == 0:<br>            return<br>    debug(msg)<br><br>    debug(&quot;# Sending message&quot;)<br><br>    try:<br>        with open(&quot;/tmp/shuffle_end.txt&quot;, &quot;w+&quot;) as tmp:<br>            tmp.write(&quot;Script done pre-msg sending&quot;)<br>    except:<br>        pass<br><br><br>    send_msg(msg, webhook)<br><br><br>def debug(msg):<br>    if debug_enabled:<br>        msg = &quot;{0}: {1}\n&quot;.format(now, msg)<br>        print(msg)<br>        f = open(log_file, &quot;a&quot;)<br>        f.write(msg)<br>        f.close()<br><br># Skips container kills to stop self-recursion<br>def filter_msg(alert):<br>    # These are things that recursively happen because Shuffle starts Docker containers<br>    skip = [&quot;87924&quot;, &quot;87900&quot;, &quot;87901&quot;, &quot;87902&quot;, &quot;87903&quot;, &quot;87904&quot;, &quot;86001&quot;, &quot;86002&quot;, &quot;86003&quot;, &quot;87932&quot;, &quot;80710&quot;, &quot;87929&quot;, &quot;87928&quot;, &quot;5710&quot;]<br>    if alert[&quot;rule&quot;][&quot;id&quot;] in skip:<br>        return False<br><br>    #try:<br>    #    if &quot;docker&quot; in alert[&quot;rule&quot;][&quot;description&quot;].lower() and &quot;<br>    #msg[&#39;text&#39;] = alert.get(&#39;full_log&#39;)<br>    #except:<br>    #    pass<br>    #msg[&#39;title&#39;] = alert[&#39;rule&#39;][&#39;description&#39;] if &#39;description&#39; in alert[&#39;rule&#39;] else &quot;N/A&quot;<br><br>    return True<br><br>def generate_msg(alert):<br>    if not filter_msg(alert):<br>        print(&quot;Skipping rule %s&quot; % alert[&quot;rule&quot;][&quot;id&quot;])<br>        return &quot;&quot;<br><br>    level = alert[&#39;rule&#39;][&#39;level&#39;]<br><br>    if (level &lt;= 4):<br>        severity = 1<br>    elif (level &gt;= 5 and level &lt;= 7):<br>        severity = 2<br>    else:<br>        severity = 3<br><br>    msg = {}<br>    msg[&#39;severity&#39;] = severity <br>    msg[&#39;pretext&#39;] = &quot;WAZUH Alert&quot;<br>    msg[&#39;title&#39;] = alert[&#39;rule&#39;][&#39;description&#39;] if &#39;description&#39; in alert[&#39;rule&#39;] else &quot;N/A&quot;<br>    msg[&#39;text&#39;] = alert.get(&#39;full_log&#39;)<br>    msg[&#39;rule_id&#39;] = alert[&quot;rule&quot;][&quot;id&quot;]<br>    msg[&#39;timestamp&#39;] = alert[&quot;timestamp&quot;]<br>    msg[&#39;id&#39;] = alert[&#39;id&#39;]<br>    msg[&quot;all_fields&quot;] = alert<br><br>    #msg[&#39;fields&#39;] = []<br>    #    msg[&#39;fields&#39;].append({<br>    #        &quot;title&quot;: &quot;Agent&quot;,<br>    #        &quot;value&quot;: &quot;({0}) - {1}&quot;.format(<br>    #            alert[&#39;agent&#39;][&#39;id&#39;],<br>    #            alert[&#39;agent&#39;][&#39;name&#39;]<br>    #        ),<br>    #    })<br>    #if &#39;agentless&#39; in alert:<br>    #    msg[&#39;fields&#39;].append({<br>    #        &quot;title&quot;: &quot;Agentless Host&quot;,<br>    #        &quot;value&quot;: alert[&#39;agentless&#39;][&#39;host&#39;],<br>    #    })<br><br>    #msg[&#39;fields&#39;].append({&quot;title&quot;: &quot;Location&quot;, &quot;value&quot;: alert[&#39;location&#39;]})<br>    #msg[&#39;fields&#39;].append({<br>    #    &quot;title&quot;: &quot;Rule ID&quot;,<br>    #    &quot;value&quot;: &quot;{0} _(Level {1})_&quot;.format(alert[&#39;rule&#39;][&#39;id&#39;], level),<br>    #})<br><br>    #attach = {&#39;attachments&#39;: [msg]}<br><br>    return json.dumps(msg)<br><br><br>def send_msg(msg, url):<br>    debug(&quot;# In send msg&quot;)<br>    headers = {&#39;content-type&#39;: &#39;application/json&#39;, &#39;Accept-Charset&#39;: &#39;UTF-8&#39;}<br>    res = requests.post(url, data=msg, headers=headers, verify=False)<br>    debug(&quot;# After send msg: %s&quot; % res)<br><br><br>if __name__ == &quot;__main__&quot;:<br>    try:<br>        # Read arguments<br>        bad_arguments = False<br>        if len(sys.argv) &gt;= 4:<br>            msg = &#39;{0} {1} {2} {3} {4}&#39;.format(<br>                now,<br>                sys.argv[1],<br>                sys.argv[2],<br>                sys.argv[3],<br>                sys.argv[4] if len(sys.argv) &gt; 4 else &#39;&#39;,<br>            )<br>            #debug_enabled = (len(sys.argv) &gt; 4 and sys.argv[4] == &#39;debug&#39;)<br>            debug_enabled = True<br>        else:<br>            msg = &#39;{0} Wrong arguments&#39;.format(now)<br>            bad_arguments = True<br><br>        # Logging the call<br>        try:<br>            f = open(log_file, &#39;a&#39;)<br>        except:<br>            f = open(log_file, &#39;w+&#39;)<br>            f.write(&quot;&quot;)<br>            f.close()<br><br>        f = open(log_file, &#39;a&#39;)<br>        f.write(msg + &#39;\n&#39;)<br>        f.close()<br><br>        if bad_arguments:<br>            debug(&quot;# Exiting: Bad arguments. Inputted: %s&quot; % sys.argv)<br>            sys.exit(1)<br><br>        # Main function<br>        main(sys.argv)<br><br>    except Exception as e:<br>        debug(str(e))<br>        raise</pre><p>Also this bash script called <strong>shuffle-integration</strong></p><pre>#!/bin/sh<br># Created by Shuffle, AS. &lt;frikky@shuffler.io&gt;.<br><br>WPYTHON_BIN=&quot;framework/python/bin/python3&quot;<br><br>SCRIPT_PATH_NAME=&quot;$0&quot;<br><br>DIR_NAME=&quot;$(cd $(dirname ${SCRIPT_PATH_NAME}); pwd -P)&quot;<br>SCRIPT_NAME=&quot;$(basename ${SCRIPT_PATH_NAME})&quot;<br><br>case ${DIR_NAME} in<br>    */active-response/bin | */wodles*)<br>        if [ -z &quot;${WAZUH_PATH}&quot; ]; then<br>            WAZUH_PATH=&quot;$(cd ${DIR_NAME}/../..; pwd)&quot;<br>        fi<br><br>        PYTHON_SCRIPT=&quot;${DIR_NAME}/${SCRIPT_NAME}.py&quot;<br>    ;;<br>    */bin)<br>        if [ -z &quot;${WAZUH_PATH}&quot; ]; then<br>            WAZUH_PATH=&quot;$(cd ${DIR_NAME}/..; pwd)&quot;<br>        fi<br><br>        PYTHON_SCRIPT=&quot;${WAZUH_PATH}/framework/scripts/${SCRIPT_NAME}.py&quot;<br>    ;;<br>     */integrations)<br>        if [ -z &quot;${WAZUH_PATH}&quot; ]; then<br>            WAZUH_PATH=&quot;$(cd ${DIR_NAME}/..; pwd)&quot;<br>        fi<br><br>        PYTHON_SCRIPT=&quot;${DIR_NAME}/${SCRIPT_NAME}.py&quot;<br>    ;;<br>esac<br><br><br>${WAZUH_PATH}/${WPYTHON_BIN} ${PYTHON_SCRIPT} &quot;$@&quot;</pre><p>Now we need to change permission and owners of the files</p><blockquote>chown root:ossec shuffle-integration*</blockquote><blockquote>chmod 750 shuffle-integration*</blockquote><p>Now everything is configured well let’s restart our Wazuh with</p><blockquote>systemctl restart wazuh-manager</blockquote><p>We can test the integration if it is working correctly by generate an event i mean attacking our monitored system that contains the wazuh-agent or we can only restart wazuh-agent and go check executions in shuffle workflow</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iDW7wodS1TOsQhkAmz3Vjw.png" /></figure><p>Thank you, if you have any question do not hesitate to contact me!</p><h3>References</h3><ul><li><a href="https://wazuh.com/blog/integrating-wazuh-with-shuffle/">Integrating Wazuh with Shuffle</a></li><li><a href="https://github.com/Shuffle/Shuffle/tree/main/functions/extensions/wazuh">Shuffle/functions/extensions/wazuh at main · Shuffle/Shuffle</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3dc0b7db439" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing Shuffle on Ubuntu system using docker]]></title>
            <link>https://medium.com/@ilyes_abdelhadi/installing-shuffle-on-ubuntu-system-using-docker-42798ecb5297?source=rss-52904e574628------2</link>
            <guid isPermaLink="false">https://medium.com/p/42798ecb5297</guid>
            <category><![CDATA[security-orchestration]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[shuffle]]></category>
            <category><![CDATA[soar]]></category>
            <dc:creator><![CDATA[Abdelhadi ilyes]]></dc:creator>
            <pubDate>Wed, 02 Aug 2023 06:26:24 GMT</pubDate>
            <atom:updated>2023-08-02T06:26:24.463Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ak0EwB3hhXeMF_Y1v7r0MA.png" /></figure><p>Hello, in previous post about Wazuh and how to deploy it on docker. Today we are going to see how to install Shuffle in the same docker container in linux server OS</p><blockquote><a href="http://installing Docker container">https://medium.com/@ilyes_abdelhadi_86557/installing-wazuh-on-ubuntu-system-using-docker-e13a452723c6</a></blockquote><h3>Shuffle</h3><p>Shuffle SOAR is a powerful open source platform that centralizes and automates security operations. It integrates various security tools, orchestrates incident response workflows, and automates routine tasks through predefined playbooks. With advanced intelligence and reporting capabilities, it empowers cybersecurity professionals to respond to security incidents effectively and efficiently, ultimately strengthening an organization&#39;s security posture.</p><p>Let’s see how to deploye Shuffle</p><blockquote>git clone <a href="https://github.com/Shuffle/Shuffle">https://github.com/Shuffle/Shuffle</a><br>cd Shuffle</blockquote><p>Create folder name shuffle-database and change permission</p><blockquote>mkdir shuffle-database<br>sudo chown -R 1000:1000 shuffle-database<br><strong>#</strong> If you get an error using “ chown ”, add the user first with “ sudo useradd opensearch ”</blockquote><p>Then we are going to face used port problem if we run it because we have Wazuh running on port 80, so we need to change the port</p><blockquote>nano shuffle/<a href="https://github.com/Shuffle/Shuffle/blob/main/docker-compose.yml">docker-compose.yml</a></blockquote><pre>version: &#39;3&#39;<br>services:<br>  frontend:<br>    image: ghcr.io/shuffle/shuffle-frontend:latest<br>    container_name: shuffle-frontend<br>    hostname: shuffle-frontend<br>    ports:<br>      - &quot;${FRONTEND_PORT}:80&quot;<br>      - &quot;${FRONTEND_PORT_HTTPS}:443&quot;<br>    networks:<br>      - shuffle<br>    environment:<br>      - BACKEND_HOSTNAME=${BACKEND_HOSTNAME}<br>    restart: unless-stopped<br>    depends_on:<br>      - backend<br>  backend:<br>    image: ghcr.io/shuffle/shuffle-backend:latest<br>    container_name: shuffle-backend<br>    hostname: ${BACKEND_HOSTNAME}<br>    # Here for debugging:<br>    ports:<br>      - &quot;${BACKEND_PORT}:5001&quot;<br>    networks:<br>      - shuffle<br>    volumes:<br>      - /var/run/docker.sock:/var/run/docker.sock<br>      - ${SHUFFLE_APP_HOTLOAD_LOCATION}:/shuffle-apps     <br>      - ${SHUFFLE_FILE_LOCATION}:/shuffle-files<br>      #- ${SHUFFLE_OPENSEARCH_CERTIFICATE_FILE}:/shuffle-files/es_certificate<br>    env_file: .env<br>    environment:<br>      - SHUFFLE_APP_HOTLOAD_FOLDER=/shuffle-apps<br>      - SHUFFLE_FILE_LOCATION=/shuffle-files<br>    restart: unless-stopped<br>    depends_on:<br>      - opensearch<br>  opensearch:<br>    image: opensearchproject/opensearch:2.5.0<br>    hostname: shuffle-opensearch<br>    container_name: shuffle-opensearch<br>    environment:<br>      - bootstrap.memory_lock=true<br>      - &quot;OPENSEARCH_JAVA_OPTS=-Xms4096m -Xmx4096m&quot; # minimum and maximum Java heap size, recommend setting both to 50% of system RAM<br>      - cluster.routing.allocation.disk.threshold_enabled=false<br>      - cluster.name=shuffle-cluster<br>      - node.name=shuffle-opensearch<br>      - discovery.seed_hosts=shuffle-opensearch<br>      - cluster.initial_master_nodes=shuffle-opensearch<br>    ulimits:<br>      memlock:<br>        soft: -1<br>        hard: -1<br>      nofile:<br>        soft: 65536 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems<br>        hard: 65536<br>    volumes:<br>      - ${DB_LOCATION}:/usr/share/opensearch/data:rw<br>    networks:<br>      - shuffle<br>    restart: unless-stopped<br>networks:<br>  shuffle:<br>    driver: bridge</pre><p>Run the docker compose in background</p><blockquote>docker-compose up -d</blockquote><p>Go browser and tape <strong>https:ip_address:port</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*fLnz1ZXlBb9IOzvNYTmNkw.png" /><figcaption>login Shuffle</figcaption></figure><blockquote>Username=<strong>admin</strong> &amp; Password=<strong>admin</strong></blockquote><p>Create new workflow and name it “Wazuh integration test”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*v2lwjls85gDpz9xpdW11oA.png" /><figcaption>Create Workflow</figcaption></figure><p>Inside the workflow we add <strong>Webhook</strong>, then we change the name of the webhook to “wazuh_alert” and change the name of the <strong>Shuffle tools</strong> to “response”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O-fYOPqHp3yKaTETpibP0g.png" /><figcaption>Workflow</figcaption></figure><p>Thank you, if you have any question do not hesitate to contact me!</p><h3>References</h3><ul><li><a href="https://github.com/Shuffle/Shuffle/tree/main">GitHub - Shuffle/Shuffle: Shuffle: A general purpose security automation platform. Our focus is on collaboration and resource sharing.</a></li><li><a href="https://shuffler.io/docs/features">Shuffle - Shuffle Features documentation</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42798ecb5297" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing Wazuh on Ubuntu system using docker]]></title>
            <link>https://medium.com/@ilyes_abdelhadi/installing-wazuh-on-ubuntu-system-using-docker-e13a452723c6?source=rss-52904e574628------2</link>
            <guid isPermaLink="false">https://medium.com/p/e13a452723c6</guid>
            <category><![CDATA[wazuh]]></category>
            <category><![CDATA[security-operation-center]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[command-and-control]]></category>
            <category><![CDATA[blue-team]]></category>
            <dc:creator><![CDATA[Abdelhadi ilyes]]></dc:creator>
            <pubDate>Sun, 16 Jul 2023 03:19:42 GMT</pubDate>
            <atom:updated>2023-08-02T04:59:32.337Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jbaZbMPOsk3RIuMsP9rzkQ.png" /></figure><p>Hello, today we are going to see how to install Wazuh in docker container in linux server OS.</p><h3>Docker</h3><p>Docker is an open-source platform that allows applications to run reliably and consistently in isolated containers. Containers package applications and their dependencies, making them portable and ensuring consistent behavior across different environments. Docker simplifies software development, deployment, and distribution by providing a standardised and efficient way to package, distribute, and manage applications. It enables efficient resource utilisation, portability, and scalability for applications in various computing environments.</p><p>First of all let’s install docker compose :</p><blockquote><strong>$ sudo curl -L “https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose</strong></blockquote><p>Next step is to give docker compose execution permission :</p><blockquote><strong>$ sudo chmod +x /usr/local/bin/docker-compose</strong></blockquote><p>Then to verify that the installation was successful, you can run:</p><blockquote><strong>$ docker-compose — version</strong></blockquote><p>Then brows into <strong>docker-compose.yml</strong> and run the following command line</p><blockquote><strong>$ docker-compose up -d</strong></blockquote><p>Now we have docker is installed and running in background</p><p>Move on to deploy Wazuh manager on docker on single-node mode deployment</p><h3>wazuh</h3><p>Wazuh is an open-source security platform that combines intrusion detection, log management, and vulnerability assessment. It includes a central manager, lightweight agents for host monitoring, and a comprehensive ruleset. With real-time monitoring and analysis, Wazuh helps organizations detect and respond to security threats effectively. It offers a user-friendly interface, supports integration with other tools, and enhances overall security posture.</p><blockquote><strong>$ git clone </strong><a href="https://github.com/wazuh/wazuh-docker.git"><strong>https://github.com/wazuh/wazuh-docker.git</strong></a><strong> -b v4.4.5</strong></blockquote><p>navigate into directory /wazuh_docker/single-node/config/wazuh_cluster/wazuh-manager.conf where the configuration of wazuh docker-image located ip_address, port… see figure below</p><blockquote>Go browser and tape <strong>https:ip_address:port</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*uNX2N3BPcOAMGb6oxId8Ug.png" /><figcaption>Wazuh login page</figcaption></figure><blockquote>Use username=<strong>admin</strong> and password=<strong>SecretPassword</strong> to connect.</blockquote><p>Now we move to other machine which we will monitor in order to protect from different threats, in my case i used pc with Windows 10 OS.</p><p>In order to detect threats wazuh-manager collects logs from every endpoint device using wazuh-agent so let’s deploy it on pc with windows 10.</p><blockquote><a href="https://packages.wazuh.com/4.x/windows/wazuh-agent-4.4.5-1.msi"><strong>https://packages.wazuh.com/4.x/windows/wazuh-agent-4.4.5-1.msi</strong></a></blockquote><p>Install it and go wazuh-dashboard as it is shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*U4cUbTMNDMcWjyFFje1prQ.png" /><figcaption>deploy new agent</figcaption></figure><p>When wazuh-manager is connected with wazuh-agent, we use the SYSMON</p><h3>Sysmon</h3><p>Sysmon is a Windows system utility developed by Microsoft that provides advanced monitoring and logging capabilities. It captures detailed information about system events and activities, such as process creation and network connections. Sysmon helps organizations detect and investigate potential security incidents, improve forensic analysis, and enhance overall system security.</p><blockquote><a href="https://download.sysinternals.com/files/Sysmon.zip"><strong>https://download.sysinternals.com/files/Sysmon.zip</strong></a></blockquote><p>Install Sysmon with config.xml file linked in the references below, on the endpoint using this command written in <strong>cmd</strong></p><blockquote><strong>sysmon -accepteula -i config.xml</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*vZqskP5EmJ8S5H9Bs9OKhw.png" /><figcaption>Sysmon events</figcaption></figure><p>Left just rules and decoders, in our case we are going to use custom rules and custom decoders to detect command and control (C2) attacks</p><blockquote><a href="https://github.com/socfortress/Wazuh-Rules/tree/main/Windows_Sysmon"><strong>https://github.com/socfortress/Wazuh-Rules/tree/main/Windows_Sysmon</strong></a></blockquote><p>Now we have Wazuh configured well and ready for alerts generation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*76wqFNlJvybxjZ_0vfjyjg.png" /><figcaption>Alert generation</figcaption></figure><p>Thank you, if you have any question do not hesitate to contact me!</p><h3>References</h3><ul><li><a href="https://github.com/SwiftOnSecurity/sysmon-config/blob/master/sysmonconfig-export.xml">sysmon-config/sysmonconfig-export.xml at master · SwiftOnSecurity/sysmon-config</a></li><li><a href="https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon">Sysmon - Sysinternals</a></li><li><a href="https://wazuh.com/">Wazuh - Open Source XDR. Open Source SIEM.</a></li><li><a href="https://docs.docker.com/engine/install/ubuntu/"></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e13a452723c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>