<?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 Tony Fu - OSCP, BTL1, AWS x 3 on Medium]]></title>
        <description><![CDATA[Stories by Tony Fu - OSCP, BTL1, AWS x 3 on Medium]]></description>
        <link>https://medium.com/@tony-fu?source=rss-1cbfefb20f9b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AoBb2Dl69x3T9KPXNlMeCA.png</url>
            <title>Stories by Tony Fu - OSCP, BTL1, AWS x 3 on Medium</title>
            <link>https://medium.com/@tony-fu?source=rss-1cbfefb20f9b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:50:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tony-fu/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[AI Agent — How to Control Token Usage in Claude]]></title>
            <link>https://tony-fu.medium.com/ai-agent-how-to-control-token-usage-in-claude-91736a40eca7?source=rss-1cbfefb20f9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/91736a40eca7</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Tony Fu - OSCP, BTL1, AWS x 3]]></dc:creator>
            <pubDate>Fri, 12 Jun 2026 07:01:03 GMT</pubDate>
            <atom:updated>2026-06-12T23:58:17.561Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DpV0UZ1i96fRDwIUpJZAPA.png" /><figcaption>AI Agent — Token Limitation</figcaption></figure><p>AI agents have become a major focus for <strong>organizations in 2026</strong>. As adoption grows, so does the challenge of managing operational costs. Whether you are building coding assistants, automation workflows, or customer support agents, every interaction with an AI model consumes tokens — and tokens directly impact your API costs.</p><p>In this article, we’ll explore what tokens are, how to estimate token usage, why AI agents consume large numbers of tokens, and several practical ways to control usage and reduce costs when using Claude.</p><p>Let’s begin with what a token means in the AI context. Then, we’ll cover <strong>token usage estimation</strong> and the basic requirements in your organization. After that, we’ll explain why token usage can grow so quickly. Finally, we’ll go through some practical ways to reduce token consumption and keep costs under control. The goal is to make AI usage more efficient and cost-effective.</p><h3>What Is a Token in AI?</h3><p>Tokens are the basic units of text that language models process and generate:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*E7ZrKYzriGTBrTEd62Qa1A.png" /><figcaption>Token Overview Table</figcaption></figure><p>Models charge based on <strong>input tokens</strong> (your prompt + context) and <strong>output tokens</strong> (the model’s response). AI agents often burn tokens faster than regular chat because they repeatedly read files, run commands, and maintain long context.</p><h3><strong>Token Usage Estimation</strong></h3><p><a href="https://platform.claude.com/docs/en/home">Claude API Docs</a>¹ provide a token counting feature that allows developers to estimate input token usage before submitting a request. This helps organizations predict costs, stay within rate limits, and optimize prompts before sending them to the model.</p><h4><strong>Token counting basics</strong></h4><p>Basic on the <a href="https://platform.claude.com/docs/en/build-with-claude/token-counting">Claude’s Token Counting documentation²</a>. Claude’s token counting API lets you estimate how many input tokens a request will use before you send it. This helps you manage costs, stay within rate limits, and make smarter routing decisions. The API supports structured inputs such as system prompts, tools, images, and PDFs, and the result is an estimate of input token usage.</p><p>Basic token counting (Python SDK)</p><pre>client = anthropic.Anthropic()<br><br>response = client.messages.count_tokens(<br>    model=&quot;claude-opus-4-7&quot;,<br>    system=&quot;You are a scientist&quot;,<br>    messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Hello, Claude&quot;}],<br>)<br><br>print(response.json())</pre><p>The API returns an estimated token count for the request :</p><pre>{ &quot;input_tokens&quot;: 14 }</pre><p>In this example, the prompt and system instructions consume approximately 14 input tokens.</p><p>This helps you:</p><ul><li>Proactively manage costs and rate limits.</li><li>Make smarter model-routing decisions, such as choosing Sonnet vs. Opus.</li><li>Optimize prompts to a target length.</li></ul><p>Claude also supports token counting for:</p><ul><li>Tools and function calls.</li><li>Images.</li><li>PDFs and other documents.</li></ul><p>Claude’s API is also flexible enough to count tokens for input types, including tools, images, and PDFs.</p><h3>Why AI Agents Use So Many Tokens</h3><p>AI coding agents consume tokens differently than normal chat, AI coding agents do :</p><ul><li>They <strong>re-read files</strong> many times (often 40–60% of Read tokens)</li><li>They <strong>explore irrelevant code</strong> due to vague prompts or missing ignore rules</li><li>They produce <strong>verbose command output</strong> (test logs, build output)</li><li>They maintain <strong>long context histories</strong> across many steps</li></ul><h3>Practical Ways to Reduce Token Usage</h3><p>To better manage token consumption and control costs, you can use several built-in settings in the Claude Console. These options help you maintain visibility, prevent unexpected usage, and enforce safe limits at the organization level.</p><p>Navigate to the <strong>Claude Platform console</strong>, navigate to the -&gt; <strong>Organization settings -&gt; Limits</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/247/1*Z_u5gXELkM6wnH0wW3hdcQ.png" /></figure><p>1.Disable API Keys When Not in Use</p><p>Go to the <strong>Claude Platform Console → Organization Settings → API Keys</strong> and disable any keys that are not actively being used. This is one of the simplest ways to prevent accidental or unwanted API calls.</p><p>Organizations can also automate API key lifecycle management through the <a href="https://platform.claude.com/docs/en/api/admin/api_keys/update">Claude Admin API</a>³. API keys can be updated programmatically and set to active, inactive, or archived states, allowing teams to enforce governance policies and reduce the risk of unused keys generating unexpected costs.</p><p>2.Configure Rate Limits</p><p>Set rate limits to control how many requests can be made within a specific time window. This helps prevent sudden spikes in usage and ensures fair distribution of resources across applications.</p><p>Tier 1 is the <strong>entry-level usage tier</strong> you get when you first start using the Claude API.</p><p>It is defined by <strong>three independent limits</strong>:</p><ul><li><strong>RPM (Requests per Minute)</strong> → how many API calls you can send</li><li><strong>ITPM (Input Tokens per Minute)</strong> → how many input tokens you can process</li><li><strong>OTPM (Output Tokens per Minute)</strong> → how many tokens the model can generate</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LyOjaPgMLtf6yVJIL5Z_7Q.png" /><figcaption>Rate Limits — Tier 1</figcaption></figure><h4>Additional Ways to Reduce Token Usage</h4><p>You can further reduce token consumption and avoid hitting rate limits by:</p><ul><li>Keeping prompts concise.</li><li>Reducing system prompt size.</li><li>Limiting tool output where possible.</li><li>Using prompt caching.</li><li>Splitting large requests into smaller, focused tasks.</li></ul><p>3.Spend Limits</p><p>Spend Limits allow you to define a maximum budget for API usage. Once the configured threshold is reached, additional usage is restricted, helping protect against unexpected costs.</p><p>This is especially useful when multiple users, applications, or AI agents are sharing the same organization account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*0v_KvHOB7mXgmNa1NQ_h3A.png" /><figcaption>Spend Limits</figcaption></figure><p>4.Enable Email notification</p><p>Email notifications provide proactive alerts when your organization approaches predefined usage or spending thresholds.</p><p>These notifications help administrators monitor consumption trends and take corrective action before limits are reached or budgets are exceeded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*WQsHbfgzFGRFPbyD9ZlQCA.png" /><figcaption>Email notification</figcaption></figure><h4>Conclusion</h4><p>By combining API key management, rate limits, spend limits, and email notifications, you can significantly improve visibility into token usage while maintaining better control over operational costs.</p><p>These simple controls can help ensure your AI applications remain both efficient and cost-effective as usage scales.</p><p>🎉How to Control Token Usage in Claude sounds critical for the organization to control their budgets! Next we’ll explore how to review practical strategies for optimizing prompts and reducing overall API costs.</p><p>Thank you for supporting this journey. I Look forward to hear from you and see you in the next stories!</p><p>📖<strong>Further Reading</strong></p><p>#1, Claude API Docs — <a href="https://platform.claude.com/docs/en/home">https://platform.claude.com/docs/en/home</a></p><p>#2, Token Counting — <a href="https://platform.claude.com/docs/en/build-with-claude/token-counting">https://platform.claude.com/docs/en/build-with-claude/token-counting</a></p><p>#3, Claude Admin API — <a href="https://platform.claude.com/docs/en/api/admin/api_keys/update">https://platform.claude.com/docs/en/api/admin/api_keys/update</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91736a40eca7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cyber Security Defend — n8n build a fast place AI workflow automation]]></title>
            <link>https://tony-fu.medium.com/cyber-security-defend-n8n-build-a-fast-place-ai-workflow-automation-e075f9e13968?source=rss-1cbfefb20f9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e075f9e13968</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[workflow-automation]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[integration]]></category>
            <dc:creator><![CDATA[Tony Fu - OSCP, BTL1, AWS x 3]]></dc:creator>
            <pubDate>Fri, 22 Aug 2025 08:01:41 GMT</pubDate>
            <atom:updated>2025-08-22T08:01:41.012Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cyber Security Defend — n8n build a fast place AI workflow automation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bz_Ky4iCllkcHe8rm3KUrQ.png" /><figcaption>n8n — AI Workflow Automation</figcaption></figure><p>I’ve recently been looking into ways to handle requests more efficiently — particularly tools that incorporate <strong>AI capabilities</strong>. That’s when I came across <strong>n8n</strong>, a platform that not only offers a clean and intuitive visual interface, but also comes with built-in AI integrations.</p><p><strong>n8n</strong> is an automation platform that lets you build end-to-end workflows, with functionality that is very similar to a SOAR tool.</p><h4><strong>Product Overview — n8n</strong></h4><p>n8n is a visual workflow automation tool that lets you build complex processes through a simple drag-and-drop editor. With hundreds of pre-built integrations including OpenAI and other AI providers — you can easily bring intelligent decision-making into your workflows.</p><p>One of the standout features is its library of ready-made templates. For example, the <strong>Website Scam Risk Detector¹</strong> template uses GPT-4o and SerpAPI to evaluate whether a website looks legitimate or suspicious.</p><p>Importing a template into your workspace takes just a few clicks, and from there you can adapt it to your specific needs. The editor displays workflows as clean, intuitive diagrams — making them easy to understand and customize, even if you’re not a developer.</p><h4><strong>Pre-defined Workflow</strong></h4><p>n8n provides handy, pre-defined workflow templates in a clean diagram format. For example, the <strong>Website Scam Risk Detector</strong> template — powered by GPT-4o and SerpAPI — gives you a ready-made starting point that you can easily adapt to your own use case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*8AVuPUfU5SZWsBWeh76JKQ.png" /></figure><p>To get started, simply click the <strong>“Use for free”</strong> button to import the workflow into your workspace (e.g., https://tonytest.app.n8n.cloud/home/workflows).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6DnYWiWMpzJZFbkmwYN7uw.png" /></figure><p>From there, click <strong>“Import template to [your-workspace] cloud”</strong> to add the template directly into your environment and begin customizing it.</p><h4>Credential Setup</h4><p>Navigate to <strong>Personal -&gt; Credential </strong>in your n8n workspace and select <strong>OpenAI Account</strong>. The next step is to connect your OpenAI account to your AI workflow automation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sSXufmAuaqQdY6pHXiP_Rg.png" /><figcaption>Credential Setup</figcaption></figure><p>To do this, simply add your <strong>OpenAI API key²</strong> in the provided field, as shown below, and save the credential.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FxFUA3wyZuWyxfi5p1ZToQ.png" /><figcaption>Connection -&gt; API Key</figcaption></figure><h4>Workflow of Website Scam Risk Detector with GPT-4o and SerpAPI</h4><p>You can import the template into your own workspace, and it will appear in the n8n editor as a visual workflow. n8n provides comprehensive features for <strong>Editor</strong>, <strong>Executions</strong>, and <strong>Evaluations</strong>, making it easy to understand and manage each step of your workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gm2Jvn7B1nKopO_YjHN3dA.png" /><figcaption>Originate AI workflow</figcaption></figure><p>In this workflow, the submitted URL is sent to the AI model, which analyzes its content to determine if the website might be suspicious or fraudulent.</p><p>For simplicity, I removed the SerpAPI component and left only the ChatGPT integration in the workflow.</p><p>1.Click the <strong>“Execute Workflow”</strong> button to pre-run the workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*27XqHDDP2rkhvXxyZp7gSw.png" /></figure><p>2.A submission form will appear, allowing the user to enter a URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*djOSBcw6krGhpn8FfNKA1A.png" /><figcaption>Submission form</figcaption></figure><p>3.After submitting, you will see the message <strong>“Form submitted.”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x8pDewh0ezwml8ZYablDTQ.png" /><figcaption>Form submitted</figcaption></figure><p>4.Return to the n8n platform and select the <strong>OpenAI Chat Model 4</strong> node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uGfT9tL5u9_BiCdE6nH61g.png" /></figure><p>5.The <strong>“On Form Submission”</strong> trigger outputs the submitted data, which you can inspect on the backend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HA1VcPr9xatg4x3yxPrz9g.png" /><figcaption>submitted data</figcaption></figure><p>6.The output contains the AI analysis of the submitted website. For example, if the dataset contains abc.com, click the logo to view the full generated analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aR_eYC2f9Y7yyrPKj6S7iA.png" /></figure><p>The JSON of generated analysis as below</p><pre>[<br>{<br>&quot;response&quot;: <br>{<br>&quot;generations&quot;: <br>[<br>[<br>{<br>&quot;text&quot;: <br>&quot;To evaluate whether abc.com is likely to be fraudulent or a scam, we need to investigate a few key factors using the Google Shopping tool:\n\n1. **Exaggerated Discounts**: Check if abc.com lists products at unusually low prices compared to standard pricing across other major retailers. Massive discounts may be a red flag indicating potential scams.\n\n2. **False Claims or Fake Endorsements**: Look for any claims of endorsements from well-known brands or personalities that don&#39;t appear on official or authorized channels. Unsubstantiated claims may indicate a fraudulent site.\n\n3. **High-End Brands at Low Prices**: Investigate if high-end or luxury brands are being offered at substantially reduced prices compared to other online and offline retailers. If the prices seem too good to be true, the site might be a scam.\n\nTo proceed, verify the listings and pricing of products on abc.com using the Google Shopping tool to identify if any of these conditions are present.&quot;,<br>&quot;generationInfo&quot;: <br>{<br>&quot;prompt&quot;: <br>0,<br>&quot;completion&quot;: <br>0,<br>&quot;finish_reason&quot;: <br>&quot;stop&quot;,<br>&quot;system_fingerprint&quot;: <br>&quot;fp_46bff0e0c8&quot;,<br>&quot;model_name&quot;: <br>&quot;gpt-4o-2024-08-06&quot;,<br>&quot;service_tier&quot;: <br>&quot;default&quot;<br>}<br>}<br>]<br>]<br>},<br>&quot;tokenUsage&quot;: <br>{<br>&quot;completionTokens&quot;: <br>189,<br>&quot;promptTokens&quot;: <br>122,<br>&quot;totalTokens&quot;: <br>311<br>}<br>}<br>]</pre><p>The main information will be provided on the text will provide you an idea about the submitted data.</p><p>As a summary, n8n provides 3 main function feature as below:</p><h4>🔧 1. Visual Workflow Builder</h4><p>n8n provides a drag-and-drop visual editor that lets you build automation flows <em>without coding</em>.<br>You can connect different nodes (API, database, webhook, OpenAI, etc.) like a diagram — making it easy to design, test, and modify your logic.</p><h4>🤖 2. Built-in AI Integrations</h4><p>n8n has built-in nodes for OpenAI, GPT-4o, HuggingFace and others.<br> That means you can easily build <strong>AI-powered workflows</strong>, e.g.:</p><ul><li>Website scam detector (GPT + SerpAPI)</li><li>Automated summarization &amp; classification</li><li>Auto-response or email drafting</li></ul><h4>🔁 3. Trigger-Based Automation (SOAR-like)</h4><p>You can trigger workflows based on <strong>events</strong>:</p><ul><li>Webhook received</li><li>Schedule (cron)</li><li>New record in database / log / SIEM</li><li>Incoming email/message</li></ul><p>This makes it behave similar to SOAR products — where one event triggers automated investigation / enrichment / decision actions.</p><p>Thank you for supporting this journey. I Look forward to hear from you and see you in the next stories!</p><p>📖<strong>Reference</strong></p><p>#1, Website Scam Risk Detector with GPT-4o and SerpAPI — <a href="https://n8n.io/workflows/5614-website-scam-risk-detector-with-gpt-4o-and-serpapi/">https://n8n.io/workflows/5614-website-scam-risk-detector-with-gpt-4o-and-serpapi/</a></p><p>#2, OpenAI API Key, <a href="https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key">https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e075f9e13968" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cyber Security Defend — Arkime (Moloch) Network Monitoring Part1 Docker Compose Deployment]]></title>
            <link>https://tony-fu.medium.com/cyber-security-defend-arkime-moloch-network-monitoring-part1-docker-compose-deployment-aba07338bfad?source=rss-1cbfefb20f9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/aba07338bfad</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-defense]]></category>
            <category><![CDATA[network-monitoring]]></category>
            <dc:creator><![CDATA[Tony Fu - OSCP, BTL1, AWS x 3]]></dc:creator>
            <pubDate>Fri, 25 Jul 2025 08:02:41 GMT</pubDate>
            <atom:updated>2025-07-25T08:02:41.007Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cyber Security Defend — Arkime (Moloch) Network Monitoring Part1 Docker Compose Deployment</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7kzpnDst4WAE168Ie_ZJyg.png" /><figcaption>Arkime (Moloch) Network Monitoring Part1 Docker Compose Deployment</figcaption></figure><p>As a Blue Team member, it’s essential to monitor the right logs and ensure visibility into network traffic — especially for critical systems like web servers and application servers. To strengthen your defensive stack, I’d like to introduce <strong>Arkime</strong> as a powerful tool for gaining deep visibility into network activity.</p><p><strong>Let’s begin with Overview.</strong> Formerly known as <strong>Moloch</strong>, <strong>Arkime</strong> enhances your existing security infrastructure by capturing and indexing network traffic in standard <strong>PCAP</strong> format, enabling fast and efficient search capabilities.</p><p>Arkime features an intuitive web interface for browsing, searching, and exporting PCAP data. It also provides APIs that allow you to retrieve both raw PCAP files and JSON-formatted session data, making it highly versatile. Since Arkime stores traffic in standard <strong>PCAP </strong>format, you can integrate it easily into your existing workflows with tools like <strong>Wireshark</strong>.</p><p>Designed for scalability, Arkime can be deployed across multiple systems and can handle traffic at rates of tens of gigabits per second. <strong>PCAP </strong>retention depends on the available disk space on sensor nodes, while metadata retention is governed by your Elasticsearch/Opensearch cluster’s capacity. Both are fully adjustable and remain under your control.</p><h3>Step-by-Step: Installing Arkime with Docker Compose</h3><p>Let’s dive into the main process for setting up <strong>Arkime</strong> using <strong>Docker Compose</strong>.</p><h4><strong>1.Install Docker &amp; Docker Compose</strong></h4><p>Before proceeding, ensure you have Docker and Docker Compose installed on your system.<br><a href="https://arkime.com/"><strong>Arkime</strong></a>¹ is an open-source, large-scale packet capture and indexing system. It supports Docker for quick deployment. The official documentation provides prebuilt Docker images and detailed configuration examples to help you get started efficiently.</p><h4><strong>2.Configuration Files Required for Docker</strong></h4><p>In your working directory, you’ll need a docker-compose.yml file, which defines all required services (like Arkime viewer, capture, and OpenSearch) and their configurations. Additionally, two key .ini files are needed in the same directory to configure Arkime services:</p><h4><strong>3. </strong>Sample docker-compose.yml</h4><p>This Compose setup launches three containers:</p><ul><li>opensearch – the backend data store.</li><li>arkime-viewer – the web-based UI for searching and analyzing captured traffic.</li><li>arkime-capture – the packet capture engine.</li></ul><pre>version: &#39;3.8&#39;<br><br>services:<br>  opensearch:<br>    image: opensearchproject/opensearch:2.14.0<br>    environment:<br>      - discovery.type=single-node<br>      - plugins.security.disabled=true<br>      - bootstrap.memory_lock=true<br>      - OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m<br>      - OPENSEARCH_INITIAL_ADMIN_PASSWORD=YourStrongPassword123!@#<br>    ulimits:<br>      memlock:<br>        soft: -1<br>        hard: -1<br>    volumes:<br>      - opensearch-data:/usr/share/opensearch/data<br>    ports:<br>      - &quot;9200:9200&quot;<br>    # networks:<br>    #   - arkime-net<br><br>  arkime-viewer:<br>    image: ghcr.io/arkime/arkime/arkime:v5-latest<br>    command: /opt/arkime/bin/docker.sh viewer<br>    environment:<br>      - ARKIME_VIEWER__PORT=8005<br>      - ARKIME_ELASTICSEARCH_URL=http://localhost:9200<br>    # ports:  # host network<br>    #   - &quot;8005:8005&quot;<br>    depends_on:<br>      - opensearch<br>    network_mode: host<br>    volumes:<br>      - ./viewer.ini:/opt/arkime/etc/config.ini<br>      - ./users.json:/opt/arkime/etc/users.json<br><br>  arkime-capture:<br>    image: ghcr.io/arkime/arkime/arkime:v5-latest<br>    command: /opt/arkime/bin/docker.sh capture<br>    environment:<br>      - ARKIME_ELASTICSEARCH_URL=http://localhost:9200<br>    volumes:<br>      - ./capture.ini:/opt/arkime/etc/config.ini<br>      - ./pcap:/pcap<br>    cap_add:<br>      - NET_ADMIN<br>      - NET_RAW<br>    network_mode: host<br>    restart: unless-stopped<br>    depends_on:<br>      - opensearch<br><br>volumes:<br>  opensearch-data:</pre><h4><strong>4. </strong>capture.ini Example</h4><p>This file tells Arkime Capture which interface to listen on and where to store PCAP files.</p><pre>[default]<br>interface=ens160<br>pcapDir=/pcap<br>elasticsearch=http://localhost:9200<br>nodeName=capture-node</pre><h4><strong>5. </strong>viewer.ini Example</h4><p>This file configures the Viewer component and sets the authentication mode.</p><pre>[default]<br>interface=ens160<br>pcapDir=/tmp<br>elasticsearch=http://localhost:9200<br>nodeName=arkime-viewer<br>authMode=digest</pre><h4><strong>6. Start the container</strong></h4><p>Once your configuration files are ready, start the Arkime and OpenSearch containers using:</p><pre>docker-compose up -d</pre><p>This command will pull the necessary images (if not already available) and create the containers as defined in your docker-compose.yml file. Example output:</p><pre>v5-latest: Pulling from arkime/arkime/arkime<br>...<br>Status: Downloaded newer image for ghcr.io/arkime/arkime/arkime:v5-latest</pre><p>Example of container deploy completed messages:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tkLxQ2u66IkGJT5smcpikw.png" /><figcaption>docker-compose up -d</figcaption></figure><h4><strong>7. Verify Services</strong></h4><p>7.1 Verify if the port is listening on port 8005 by command below:</p><pre>sudo ss -tuln | grep 8005</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*hozsln3pzwQYnVjiuHTQgg.png" /><figcaption>sudo ss -tuln | grep 8005</figcaption></figure><p>7.2 Check Container Logs</p><p>Use the following command to view logs and confirm that each container is running properly:</p><pre>docker logs arkime_arkime-viewer_1</pre><p>Make sure there are no connection errors to OpenSearch and that no critical services have failed.</p><h4><strong>8. Troubleshooting</strong></h4><p>8.1 <strong>Error 1:</strong> authMode=digest Warning &amp; OpenSearch Connection Issues</p><p>When starting the Arkime Viewer, you may encounter the following warning and errors:</p><pre>WARNING - Using authMode=digest since not set, add to config file to silence this warning.<br>ERROR - fetching aliases ConnectionError: socket hang up<br>ERROR - OpenSearch/Elasticsearch ConnectionError: socket hang up<br>...<br>ERROR - Issue with &#39;arkime_stats&#39; index, make sure &#39;db/db.pl &lt;host:port&gt; init&#39; has been run.<br>...<br>index_not_found_exception<br>...</pre><p><strong>Solution:</strong></p><p>You need to initialize the Arkime database before the viewer can connect and operate correctly.</p><p>Run the following command to initialize the database:s.</p><pre>sudo docker run --rm -it \<br>  --network host \<br>  -v &quot;$(pwd)/viewer.ini:/opt/arkime/etc/config.ini&quot; \<br>  ghcr.io/arkime/arkime/arkime:v5-latest \<br>  /opt/arkime/db/db.pl http://localhost:9200 init<br>It is STRONGLY recommended that you stop ALL Arkime captures and viewers before proceeding.  Use &#39;db.pl http://localhost:9200 backup&#39; to backup db first.<br><br>There is 1 OpenSearch/Elasticsearch data node, if you expect more please fix first before proceeding.<br><br></pre><p>The output similar as below:</p><pre>This is a fresh Arkime install<br>Erasing<br>Creating<br>Finished</pre><p>8.2 <strong>Error 2:</strong> No Users Defined</p><p>After initializing the database, you may still see the following warning when viewing logs:</p><pre>WARNING - No users are defined, use `/opt/arkime/bin/arkime_add_user.sh` to add one<br>Tue, 22 Jul 2025 06:00:28 GMT - GET / 401 - bytes 6.402 ms<br>AUTH: User admin doesn&#39;t exis</pre><p><strong>Solution:</strong></p><p>Add a default admin user using the following command:</p><pre>sudo docker exec -it arkime_arkime-viewer_1 /opt/arkime/bin/arkime_add_user.sh<br>admin &quot;Admin User&quot; changeme --admin<br>Added</pre><p>Now that you’ve successfully logged in as the admin user, you’re ready to begin monitoring network traffic on your server through Arkime’s intuitive web GUI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FKruC1naPjHgT8oqBWolWg.png" /><figcaption>Arkime’s Web GUI</figcaption></figure><p>🎉Done! Next we are going to explore the metadata captured by Arkime and how you can leverage this data in real-world defense use cases.</p><p>Thank you for supporting this journey. I Look forward to hear from you and see you in the next stories!</p><p>📖<strong>Further Reading</strong></p><p>#1, Open Source Arkime — <a href="https://arkime.com/">https://arkime.com/</a></p><p>#2, Arkime’s Github — <a href="https://github.com/arkime/arkime">https://github.com/arkime/arkime</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aba07338bfad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Security — 3 Critical Actions When Your EC2 Instance Is Compromised]]></title>
            <link>https://tony-fu.medium.com/aws-security-3-critical-actions-when-your-ec2-instance-is-compromised-ae734e3ea5c1?source=rss-1cbfefb20f9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae734e3ea5c1</guid>
            <category><![CDATA[aws-security]]></category>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[ec2-instance]]></category>
            <dc:creator><![CDATA[Tony Fu - OSCP, BTL1, AWS x 3]]></dc:creator>
            <pubDate>Fri, 30 May 2025 08:02:28 GMT</pubDate>
            <atom:updated>2025-05-30T08:02:28.109Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS Security — 3 Critical Actions When Your EC2 Instance Is Compromised</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KmKm4NHW-M8KBIP0opgjBQ.png" /><figcaption>3 Critical Actions When Your EC2 Instance Is Compromised</figcaption></figure><p>Let’s discuss <strong>AWS security</strong> — specifically, the actions you should take <strong>before beginning an investigation</strong> when you suspect that an EC2 instance has been compromised by a malicious attack. This article is written from a <strong>blue team perspective</strong>, focusing on how defenders can properly handle a potentially compromised machine in the cloud.</p><p>The primary goal is to <strong>preserve the EC2 instance in its current state</strong>, retaining forensic evidence that can help security analysts <strong>reconstruct the attack path</strong> and understand how the compromise occurred.</p><p>Here are <strong>3 critical actions</strong> I strongly recommend taking <strong>before cloud engineers and blue team members begin collaborating on investigating the affected EC2 instance</strong>.</p><h3>1. Enable Termination Protection for the EC2 Instance</h3><p>Enabling termination protection is a simple but critical first step when dealing with a potentially compromised EC2 instance. It helps prevent accidental or unauthorized termination of the instance, ensuring that valuable forensic evidence is preserved for investigation.</p><h4>Why it matters:</h4><p>Termination protection acts as a safeguard to ensure the instance cannot be deleted unless the protection is explicitly turned off. This is especially important during an incident, where the risk of accidental deletion or even malicious termination (e.g., by an adversary with limited access) is higher.</p><h4>Steps to Enable Termination Protection</h4><p>1.1 Navigate to the EC2 console</p><p>Go to <strong>EC2 → Instances → Select the target instance. </strong>There would be a option to change the termination protection</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vvstyhuyTpji0NlY00xmaQ.png" /><figcaption>EC2 Instance Metadata</figcaption></figure><p>1.2 Change termination (deletion) protection</p><p>Under <strong>Instance Settings</strong>, find the option to <strong>change termination protection</strong>, and enable it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/439/1*6E7-OJDWoAjibEVbmE1u5A.png" /><figcaption>Termination protection</figcaption></figure><p>Once enabled, this setting prevents the instance from being terminated through the console, CLI, or API. It creates a safeguard so that only a trusted administrator can disable the protection and delete the instance — minimizing the risk of tampering by unauthorized users or adversaries.</p><p>The instance can still be manually deleted, but only after termination protection has been explicitly disabled.</p><h3>2. Take Snapshots of Attached EBS Volumes</h3><h4>Why it matters:</h4><p>Capturing Amazon EBS snapshots preserves a point-in-time copy of the instance’s disk, allowing for offline forensic analysis without altering the original data.</p><h4>Steps to take snapshots</h4><p>2.1 Navigate to the EC2 console</p><p>Go to <strong>EC2 → Volumes → Select the target volume → Actions → Create Snapshot</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z4-SRwdesFcpJZOF7pYPXA.png" /><figcaption>EBS volume</figcaption></figure><p>Click <strong>“Create snapshot”</strong> to immediately capture the current state of the disk. This ensures that no further changes occur after the suspected compromise.</p><p>2.2 (Optional) Add tags for tracking:</p><p>To help identify and organize forensic artifacts, add descriptive tags such as:</p><ul><li>forensics=true</li><li>incident=&lt;type-of-incident&gt;</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YEJbEBWoRhXhFhhnXRovtg.png" /><figcaption>Add tag</figcaption></figure><p>Tagging snapshots ensures better visibility and supports incident tracking across your environment.</p><h3>3. Capture EC2 Metadata and Tag the Instance as Under Quarantine</h3><h4>Why it matters:</h4><p>Instance metadata provides useful context (e.g., IAM role, IP addresses, tags) for the investigation. Tagging the instance helps notify teams that the resource is under investigation and should not be modified or restarted.</p><h4>Steps to Tag the Instance</h4><p>3.1 Navigate to the EC2 Console</p><p>By navigating to <strong>EC2 → Instances → Select the instance → Tags → Manage Tags</strong>, you can add or modify tags to flag the instance for investigation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vXtwqbukIYZstNSo1-wvQQ.png" /><figcaption>EC2 Instance Metadata</figcaption></figure><p><strong>3.2</strong> (Optional) Collect metadata via CLI:</p><pre>aws ec2 describe-instances --instance-ids &lt;instance-id&gt;</pre><p><strong>3.3</strong> (Optional) Apply tags to the instance to mark it as quarantined:</p><pre>aws ec2 create-tags \<br>  --resources &lt;instance-id&gt; \<br>  --tags Key=incident,Value=under-investigation Key=status,Value=quarantined</pre><p>Recommended tagging values:</p><ul><li>incident=under-investigation</li><li>status=quarantined</li></ul><blockquote><em>🏷️ Tagging not only flags the instance for response teams but also helps trigger automation workflows if you have incident-response playbooks in place.</em></blockquote><h3>💭Final Thoughts</h3><ul><li><strong>Consistent tagging</strong> is vital during incident response. It helps security teams quickly identify affected resources, track investigation status, and trigger automation workflows.</li><li><strong>Backing up the environment’s state</strong> (e.g., EBS snapshots, metadata, configuration details) <strong>before taking response actions</strong> is crucial. It preserves a clean forensic baseline and ensures that evidence is not lost or altered during the investigation.</li></ul><p>Thank you for supporting this journey. I Look forward to hear from you and see you in the next stories!</p><p>📖<strong>Further Reading</strong></p><p>#1, Follow the official AWS GuardDuty guidance for handling a potentially compromised EC2 instance <a href="https://docs.aws.amazon.com/guardduty/latest/ug/compromised-ec2.html">https://docs.aws.amazon.com/guardduty/latest/ug/compromised-ec2.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae734e3ea5c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Penetration Testing — Increase your web pentest speed in Burp AI]]></title>
            <link>https://tony-fu.medium.com/penetration-testing-increase-your-web-pentest-speed-in-burp-ai-2c796308e87a?source=rss-1cbfefb20f9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c796308e87a</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[burpsuite]]></category>
            <dc:creator><![CDATA[Tony Fu - OSCP, BTL1, AWS x 3]]></dc:creator>
            <pubDate>Fri, 09 May 2025 08:02:39 GMT</pubDate>
            <atom:updated>2025-05-09T08:02:39.284Z</atom:updated>
            <content:encoded><![CDATA[<h3>Penetration Testing — Speed up your web pentesting using Burp AI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NUQ6oKKC5q7y-S5e2a4Y2g.png" /><figcaption>Speed up your web pentesting using Burp AI</figcaption></figure><p>Good to see you here again. Here’s some exciting news from April 2025 — <strong>Burp Suite Professional 2025.2</strong> has been released, bringing powerful <strong>AI integration</strong> into the toolset. Even better, if you’re using the Professional version, <strong>PortSwigger is offering 10,000 free AI credits</strong> to help you get started. Big thanks to Burp Suite for rolling out such innovative features to support dedicated penetration testers!</p><p>Let’s explore what’s new:</p><h4>🔍Three Major AI-Powered Enhancements</h4><h4>1. Burp AI Automatic Scan</h4><p>Burp AI brings smart automation and deep insight to your pentesting workflow. This feature feels similar to <strong>DAST (Dynamic Application Security Testing)</strong> — it automatically sends a wide range of crafted web requests to your target and attempts to identify vulnerabilities aligned with the <strong>OWASP Top 10</strong>.</p><p>It reduces manual effort by streamlining the initial testing phase, helping bug bounty hunters and security professionals kick off their assessments more efficiently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NfDwU7sLEWP8xFtI56ElYw.png" /><figcaption>Burp AI Automatic Scan</figcaption></figure><h4>2. Recorded Login Sequences</h4><p>This is a powerful feature. Burp Suite now not only identifies vulnerabilities and provides reports with exploitation guidance — it also offers <strong>video recordings</strong> that show exactly how an adversary could exploit these issues in a browser.</p><p>In the <strong>Professional version</strong>, you can visually see how an attacker interacts with your system through the browser. This makes it much easier to include in a penetration test report and helps clearly explain the risk to stakeholders, especially those without a technical background.</p><h4>3. Explanation</h4><p>This feature is only available in the Professional version of the tool, so the screenshot below may not fully reflect the behavior in that edition. However, the main point I want to highlight is the <strong>token </strong>below.</p><p>In the <strong>Community version</strong>, you can only view the bearer token as a parameter.<br>In contrast, the <strong>Professional version</strong> provides a detailed explanation of the bearer token when you highlight it, offering deeper insights that are not available in the free version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rrqDZPiOWmnFOIY4iZ6_Aw.png" /><figcaption>Explain Web Request</figcaption></figure><h4>💭Final Thoughts</h4><ul><li>Regarding <strong>Burp AI Scanning</strong>: It’s a fantastic feature to accelerate the initial recon and testing. By simply clicking “Explore Issues,” you can get early insights before diving deeper manually.</li><li>For the <strong>Recorded Sequences</strong>: It brings a valuable human-readable dimension to otherwise technical assessments.</li><li>On the <strong>Parameter Explanation</strong>: It definitely speeds up the process — but remember, these tools <strong>enhance</strong>, not replace the judgment of an experienced security professional. A skilled tester is still needed to interpret results and make final decisions.</li></ul><p>Combining these AI-powered tools into a single platform is a brilliant move by Burp Suite.</p><p>Thank you for supporting this journey. I Look forward to hear from you and see you in the next stories!</p><p>📚<strong>Reference</strong></p><p>#1, Introducing Burp AI — <a href="https://portswigger.net/blog/welcome-to-the-next-generation-of-burp-suite-elevate-your-testing-with-burp-ai">https://portswigger.net/blog/welcome-to-the-next-generation-of-burp-suite-elevate-your-testing-with-burp-ai</a></p><p>📖<strong>Further Reading</strong></p><p>#Development security — SAST vs DAST vs IAST — <a href="https://medium.com/@tony-fu/development-security-sast-vs-dast-vs-iast-5fcfd53157e8">https://medium.com/@tony-fu/development-security-sast-vs-dast-vs-iast-5fcfd53157e8</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c796308e87a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cyber Security Defend — Linux System Monitor]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://tony-fu.medium.com/cyber-security-defend-linux-system-monitor-10b6b2af9919?source=rss-1cbfefb20f9b------2"><img src="https://cdn-images-1.medium.com/max/1201/1*hwR0roQjSoZw0tnR-E2E_Q.png" width="1201"></a></p><p class="medium-feed-snippet">Sysmon is an important tool for enhancing event visibility on Linux systems. Just like Sysmon for Windows, which I shared earlier, I&#x2019;ve&#x2026;</p><p class="medium-feed-link"><a href="https://tony-fu.medium.com/cyber-security-defend-linux-system-monitor-10b6b2af9919?source=rss-1cbfefb20f9b------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://tony-fu.medium.com/cyber-security-defend-linux-system-monitor-10b6b2af9919?source=rss-1cbfefb20f9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/10b6b2af9919</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-defense]]></category>
            <category><![CDATA[linux-security]]></category>
            <category><![CDATA[linux-log]]></category>
            <dc:creator><![CDATA[Tony Fu - OSCP, BTL1, AWS x 3]]></dc:creator>
            <pubDate>Fri, 18 Apr 2025 08:01:09 GMT</pubDate>
            <atom:updated>2025-04-18T08:01:09.270Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[AWS Security — Enhancing DNS Security with Route 53 and DNSSEC]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://tony-fu.medium.com/aws-security-enhancing-dns-security-with-route-53-and-dnssec-cb3d085135b3?source=rss-1cbfefb20f9b------2"><img src="https://cdn-images-1.medium.com/max/2600/1*qkVQ4k_uA_4of2a_rkDYiQ.png" width="3603"></a></p><p class="medium-feed-snippet">DNS services are among the most critical components in any environment, including the AWS cloud. AWS offers Route 53, a managed DNS&#x2026;</p><p class="medium-feed-link"><a href="https://tony-fu.medium.com/aws-security-enhancing-dns-security-with-route-53-and-dnssec-cb3d085135b3?source=rss-1cbfefb20f9b------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://tony-fu.medium.com/aws-security-enhancing-dns-security-with-route-53-and-dnssec-cb3d085135b3?source=rss-1cbfefb20f9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb3d085135b3</guid>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[dns-security]]></category>
            <category><![CDATA[aws-security]]></category>
            <dc:creator><![CDATA[Tony Fu - OSCP, BTL1, AWS x 3]]></dc:creator>
            <pubDate>Fri, 28 Mar 2025 16:36:08 GMT</pubDate>
            <atom:updated>2025-03-28T16:37:39.796Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[AWS Security —How to Pass Exam SCS-C02 in a month]]></title>
            <link>https://tony-fu.medium.com/aws-security-how-to-pass-exam-scs-c02-in-a-month-95aa67fb8250?source=rss-1cbfefb20f9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/95aa67fb8250</guid>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[cloud-engineer]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[exam-preparation]]></category>
            <category><![CDATA[aws-security]]></category>
            <dc:creator><![CDATA[Tony Fu - OSCP, BTL1, AWS x 3]]></dc:creator>
            <pubDate>Fri, 07 Mar 2025 09:02:42 GMT</pubDate>
            <atom:updated>2025-03-07T09:02:42.501Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS Security — How to Pass AWS Security Exam SCS-C02 in a month!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ssLtRi00zLuz9V7zqJAT4g.png" /><figcaption>AWS Security</figcaption></figure><h4>Understanding the AWS Security Specialty Certification</h4><p>AWS provides the AWS Certified Security — Specialty (SCS-C02) certification to help professionals establish expertise in securing AWS cloud environments. This certification covers six key domains essential for a cloud security engineer:</p><ul><li>Domain 1: Threat Detection and Incident Response (14% of scored content)</li><li>Domain 2: Security Logging and Monitoring (18% of scored content)</li><li>Domain 3: Infrastructure Security (20% of scored content)</li><li>Domain 4: Identity and Access Management (16% of scored content)</li><li>Domain 5: Data Protection (18% of scored content)</li><li>Domain 6: Management and Security Governance (14% of scored content)</li></ul><p><strong>Tips for pass the AWS security in a month</strong></p><p>Stay focused and dedicate more time each day to studying. This approach significantly improves understanding and enhances memory retention.</p><ul><li>Spend <strong>at least 3 hours per day</strong> reviewing materials.</li><li>Summarize key points for each AWS module.</li><li>Understand real-world <strong>use cases</strong> for AWS security tools and services.</li><li>Learn how to <strong>implement security policies</strong> based on specific requirements.</li><li>Identify <strong>who is responsible</strong> for different security aspects in AWS.</li></ul><h4>Step 1: Start with AWS Official Documentation</h4><p>Begin by reading the AWS Certified Security — Specialty Exam Guide to understand the certification requirements and key topics covered in the exam. 🔗AWS Certified Security — Specialty (SCS-C02) <a href="https://aws.amazon.com/certification/certified-security-specialty/">Exam Guide</a>¹.</p><p>Reviewing the official exam guide is a great way to understand the requirements for the AWS Security certification. Additionally, taking the Exam Prep Official Practice Question Set can provide valuable insights into the types of questions you’ll encounter.</p><h4>Step 2: Week 1 &amp; 2 — Video Courses</h4><p>For the first two weeks, I recommend starting your <strong>AWS Security</strong> learning journey with <strong>Stephane Maarek’s</strong> course on Udemy: 🔗 <a href="https://www.udemy.com/course/ultimate-aws-certified-security-specialty/?couponCode=KEEPLEARNING">Ultimate AWS Certified Security Specialty Course</a>².</p><p>This course is <strong>16 hours and 12 minutes long</strong>. Aim to spend <strong>1–2 hours per day</strong> watching the videos and taking notes. This will help you absorb key concepts effectively.</p><p>By the end of this course, you’ll gain a solid understanding of AWS Security. Below are the essential topics you should master for each domain. However, since the content within each domain is broad, it’s also important to explore additional related concepts.</p><p><strong>Domain 1: Threat Detection and Incident Response</strong></p><ul><li>Learn <strong>GuardDuty, Security Hub, and AWS Detective</strong> for threat detection.</li><li>Understand how to detect <strong>compromised AWS resources</strong> and credentials.</li><li>Learn how <strong>EC2 key pairs</strong> work on Linux and Windows.</li></ul><p><strong>Domain 2: Security Logging and Monitoring</strong></p><ul><li>Use <strong>Amazon Inspector, AWS CloudTrail, and AWS Systems Manager</strong> for monitoring.</li><li>Configure <strong>CloudWatch</strong>, <strong>VPC Flow Logs</strong>, <strong>DNS Logging</strong>, and <strong>Traffic Mirroring</strong>.</li><li>Learn how to track and analyze logs effectively.</li></ul><p><strong>Domain 3: Infrastructure Security</strong></p><ul><li>Understand <strong>AWS network security</strong>, including <strong>VPNs, VPC peering, and centralized network control</strong>.</li><li>Learn <strong>CloudFront and AWS WAF</strong> for Layer 7 security.</li><li>Study <strong>DDoS protection with AWS Shield</strong> and <strong>API Gateway security</strong>.</li></ul><p><strong>Domain 4: Identity and Access Management (IAM)</strong></p><ul><li>Learn IAM roles, permissions, and <strong>IAM permission boundaries</strong>.</li><li>Configure <strong>S3 access controls</strong> and VPC endpoint strategies.</li><li>Understand <strong>Cognito</strong> and <strong>SAML 2.0</strong> for authentication.</li><li>Learn <strong>AWS Certificate Manager (ACM)</strong> for managing SSL/TLS certificates.</li></ul><p><strong>Domain 5: Data Protection</strong></p><ul><li>Study <strong>encryption techniques</strong> using <strong>AWS CloudHSM and KMS</strong>.</li><li>Learn how <strong>AWS Secrets Manager</strong> stores and manages credentials.</li></ul><p><strong>Domain 6: Management and Security Governance</strong></p><ul><li>Understand <strong>AWS Config</strong> for compliance and security monitoring.</li><li>Learn <strong>CloudFormation</strong> for managing security configurations.</li><li>Explore <strong>AWS Service Catalog</strong> for security best practices.</li></ul><h4>Step 3: Hands-on Labs &amp; Real-World Use Cases (Week 3)</h4><p>In the next two weeks, start using the <strong>AWS Web Console</strong> for hands-on labs. Practical experience will reinforce what you’ve learned in the videos and improve your memory retention.</p><p>There are many resources available to <strong>practice AWS security labs at a lower cost</strong>, such as 🔗 <a href="https://digitalcloud.training/aws-hands-on-challenge-labs/?megamenu">Digital Cloud Training — AWS Hands-On Challenge Labs</a>³.</p><p>Additionally, follow my blog, where I will summarize AWS Security concepts and provide <strong>real-world use cases</strong> with AWS security modules.</p><p>Examples of AWS Security Use Cases:</p><p>1. <a href="https://medium.com/@tony-fu/aws-security-patch-vm-with-aws-ssm-patch-manager-7a7796fb5d9a">AWS Security — Patch VM with AWS SSM Patch Manager</a></p><p>2. <a href="https://medium.com/@tony-fu/aws-security-aws-s3-and-automation-with-terraform-f8a7bca04462">AWS Security — AWS S3 Overview and Automation with Terraform</a></p><p>More use cases will be explored to help you on your AWS Security journey. Stay tuned!</p><h4>Step 4: Final Week — Practice Exams &amp; Review (Week 4)</h4><p>By now, you should have a good understanding of <strong>AWS Security scenarios</strong> and how to apply security policies across different AWS modules.</p><p>In the final week, focus on <strong>practice exams</strong> to reinforce your knowledge and identify any weak areas. There are also <strong>practice tests available on Udemy</strong> that can help you strengthen your understanding and gain more exam experience.</p><p>Recommended Practice Strategies:</p><ul><li>Take <strong>mock tests</strong> available on <strong>Udemy</strong> and <strong>AWS Training</strong>.</li><li><strong>Review incorrect answers</strong> to understand mistakes and revisit weak areas.</li><li>Ensure you <strong>fully understand how security policies are applied</strong> across AWS services.</li></ul><p>This final step will <strong>solidify your knowledge</strong> and boost your confidence before taking the actual exam.</p><p>Hope you also be success on your AWS security certification.</p><p>Thank you for supporting this journey. I Look forward to hear from you and see you in the next stories!</p><p>Reference</p><p>#1, AWS Security guide — <a href="https://aws.amazon.com/certification/certified-security-specialty/">https://aws.amazon.com/certification/certified-security-specialty/</a></p><p>#2, Course — <a href="https://www.udemy.com/course/ultimate-aws-certified-security-specialty/?couponCode=KEEPLEARNING">https://www.udemy.com/course/ultimate-aws-certified-security-specialty/?couponCode=KEEPLEARNING</a></p><p>#3, Digital Cloud Training AWS Hands-On Challenge Labs — <a href="https://digitalcloud.training/aws-hands-on-challenge-labs/?megamenu">https://digitalcloud.training/aws-hands-on-challenge-labs/?megamenu</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95aa67fb8250" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Security — AWS S3 and Automation with Terraform]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://tony-fu.medium.com/aws-security-aws-s3-and-automation-with-terraform-f8a7bca04462?source=rss-1cbfefb20f9b------2"><img src="https://cdn-images-1.medium.com/max/1202/1*QT5EXgZRen7GRGsJ5RvI7Q.png" width="1202"></a></p><p class="medium-feed-snippet">Implementing robust AWS Security for S3 is a critical IAM control in any AWS environment.</p><p class="medium-feed-link"><a href="https://tony-fu.medium.com/aws-security-aws-s3-and-automation-with-terraform-f8a7bca04462?source=rss-1cbfefb20f9b------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://tony-fu.medium.com/aws-security-aws-s3-and-automation-with-terraform-f8a7bca04462?source=rss-1cbfefb20f9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8a7bca04462</guid>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[iaas]]></category>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[aws-security]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Tony Fu - OSCP, BTL1, AWS x 3]]></dc:creator>
            <pubDate>Fri, 21 Feb 2025 09:02:29 GMT</pubDate>
            <atom:updated>2025-02-21T09:02:29.094Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Cyber Security Defend — URL Analysis]]></title>
            <link>https://tony-fu.medium.com/cyber-security-defend-url-analysis-93464cc6fdb8?source=rss-1cbfefb20f9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/93464cc6fdb8</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-defense]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[url-analysis]]></category>
            <dc:creator><![CDATA[Tony Fu - OSCP, BTL1, AWS x 3]]></dc:creator>
            <pubDate>Fri, 07 Feb 2025 09:01:41 GMT</pubDate>
            <atom:updated>2025-02-07T09:01:41.802Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cyber Security Defend — URL Analysis</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hDpBqaHUgeS5d944HtkgWA.png" /></figure><blockquote>URL analysis can serve as an important indicator of whether an organization is being targeted. One of the most fundamental yet often overlooked elements in cybersecurity is the URL itself. But how do we analyze URLs, identify key indicators, and test for malicious links? This article will give you insights into these aspects.</blockquote><p>🔧<strong> Where Does the URL Come From?</strong></p><p>First of all, let’s determine where we can obtain the URL. One common source is <strong>phishing emails</strong> that you may receive and interact with daily. These emails often contain <strong>malicious links</strong> designed to trick users into providing sensitive information.</p><p>Another source is <strong>firewall logs</strong>, which monitor <strong>outbound traffic</strong> and can capture suspicious URLs that users attempt to access. Firewalls play a crucial role in detecting and blocking malicious connections.</p><p><strong>🔨What the Content of URL from</strong></p><p>The Content is taken from the email, we could extract the content from the email in different means of sender, receiver, domain and also any link of the email that redirect you to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*2WUNCmYRMoCC9RDgySN1aQ.png" /><figcaption>Sender Email</figcaption></figure><p>The sender email would be one of the thing that catch my eye as it is the domain not from McAfee, but it say it is “McAfee Confirmation Needed”.</p><p>The content actually like this below that descripting renew the subscription soon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N8W1DA7Jh2vk2o1GMITd5w.png" /><figcaption>Email Content</figcaption></figure><p>and redirect to the somewhere out of the roberts.probabilitan.info domain which it is not their company product? And the domain is do exist, here i am not going to share it for public.</p><p>The next we could put it into some URL analysis software to give us some clear content.</p><p>🔎<strong>What Tools we could use to analysis</strong></p><p>So Now we have two URL could be send back to the vendor. domain would be one of the element in URL. Here would be the explanation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*t6drdlVMHcntao5SKb3Fgw.png" /><figcaption>URL structure</figcaption></figure><p>Well, there are many tools available for analysis the URLs, but i prefer using the free version of VirusTotal¹</p><p>Let’s go with the first indicator of domain to check what information we are available to get.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O91Kq18FNMXlN4ezYNP5sg.png" /><figcaption>Result of Domain</figcaption></figure><p>The second indicator is the presence of the full URL in the email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Igen2HdrT6aa9E5ZXO1X1A.png" /><figcaption>Result of Full URL in Email Content</figcaption></figure><p>The results may vary depending on the source, providing different insights. Additionally, the information can help determine whether a URL is associated with spam.</p><p>🔐<strong>What is the next?</strong></p><p>For deeper threat hunting or analysis, identifying a potentially malicious URL is first step. To examine its behavior, running it in a sandbox environment like AnyRun² can be a good approach. This allows us to observe what happens if a user actually clicks the link and understand the potential consequences such as what you might loss.</p><p>Thank you for supporting this journey. I Look forward to hear from you and see you in the next stories!</p><p><strong>Reference</strong></p><p>#1, VirusTotal — <a href="https://www.virustotal.com/gui/home/upload">https://www.virustotal.com/</a></p><p>#2, AnyRun— <a href="https://any.run/">https://any.run/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93464cc6fdb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>