<?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 Ajay Magar on Medium]]></title>
        <description><![CDATA[Stories by Ajay Magar on Medium]]></description>
        <link>https://medium.com/@magarajay538?source=rss-7d9ccad64584------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KxeD1fnWxQAazR2bfLz-cw.jpeg</url>
            <title>Stories by Ajay Magar on Medium</title>
            <link>https://medium.com/@magarajay538?source=rss-7d9ccad64584------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 18:37:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@magarajay538/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[Defending AWS Assets through Email alerts.]]></title>
            <link>https://infosecwriteups.com/defending-aws-assets-through-email-alerts-991b6fb3c8ce?source=rss-7d9ccad64584------2</link>
            <guid isPermaLink="false">https://medium.com/p/991b6fb3c8ce</guid>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Ajay Magar]]></dc:creator>
            <pubDate>Sat, 19 Aug 2023 15:25:50 GMT</pubDate>
            <atom:updated>2023-08-28T07:19:10.306Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Folks I have come with new cloud Security project. to defend Aws Assets. Aws has GuardDuty service which monitor aws resource and apis and detect potentional security threats. to Detect threat GaurdDuty use Cloudtrail Logs , Dns Logs and Eks Logs. when GuardDuty detect any attack it create finding in dashboard and it contains aws resource , Malicios Ip, Victim Iam User and Type of Threat.</p><p>Till Here everything is good. But as a Security Engineer i need to check everyday that is there any finding or not. but this is time consuming and boring task to check everyday. that’s why i came up with this automation. Whenever GuardDuty dectect any attack and create finding on dashboard it will trigeer <strong>SNS Topic</strong> (which is also a aws service ) and will notify the user via email about the finding.</p><p>Lets Build.</p><p>Lets Create <strong>SNS Topic</strong> First.</p><p>Go to the Aws Dashbaord Serach SNS Topic -&gt; Create a New Topic</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P0DpVFsw-zA261nuRMAokg.png" /></figure><p>After Creating Topic Create a Suscribtion to Email Service. aws will Send confirmation Mail on that email address by clicking the link we can accept the suscribtion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Z46inyHzFrIKhMT0OnWvg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sEg7TWMZO1uKlK7MljN6UA.png" /></figure><p>Now its time To Create Event on Aws Eventbridge. Go to the aws Eventbridge -&gt; create a new Rule -&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JANbtJXi99tMC7z56TKkQA.png" /></figure><p>After this we need to create event Pattern → Copy this Pattern and paste in event pattern.</p><pre>{<br>  &quot;source&quot;: [<br>    &quot;aws.guardduty&quot;<br>  ],<br>  &quot;detail-type&quot;: [<br>    &quot;GuardDuty Finding&quot;<br>  ],<br>  &quot;detail&quot;: {<br>    &quot;severity&quot;: [<br>      5,<br>      5.0,<br>      5.1,<br>      5.2,<br>      5.3,<br>      5.4,<br>      5.5,<br>      5.6,<br>      5.7,<br>      5.8,<br>      5.9,<br>      6,<br>      6.0,<br>      6.1,<br>      6.2,<br>      6.3,<br>      6.4,<br>      6.5,<br>      6.6,<br>      6.7,<br>      6.8,<br>      6.9,<br>      7,<br>      7.0,<br>      7.1,<br>      7.2,<br>      7.3,<br>      7.4,<br>      7.5,<br>      7.6,<br>      7.7,<br>      7.8,<br>      7.9,<br>      8,<br>      8.0,<br>      8.1,<br>      8.2,<br>      8.3,<br>      8.4,<br>      8.5,<br>      8.6,<br>      8.7,<br>      8.8,<br>      8.9<br>    ]<br>  }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TQfloKAu9uqsUrED4GJUoQ.png" /></figure><p>After Creating Event we need to Select the target -&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P7vyeutjBvgTXBZls_fk4w.png" /></figure><p>In Additional Setting Select input Transformer and configure Input Transformer</p><p>Put this in Input Path and Template</p><p>we will get the email in below template format.</p><pre>{<br>    &quot;severity&quot;: &quot;$.detail.severity&quot;,<br>    &quot;Account_ID&quot;: &quot;$.detail.accountId&quot;,<br>    &quot;Finding_ID&quot;: &quot;$.detail.id&quot;,<br>    &quot;Finding_Type&quot;: &quot;$.detail.type&quot;,<br>    &quot;region&quot;: &quot;$.region&quot;,<br>    &quot;Finding_description&quot;: &quot;$.detail.description&quot;<br>}</pre><pre>&quot;AWS &lt;Account_ID&gt; has a severity &lt;severity&gt; GuardDuty finding type &lt;Finding_Type&gt; in the &lt;region&gt; region.&quot;<br>&quot;Finding Description:&quot;<br>&quot;&lt;Finding_description&gt;. &quot;<br>&quot;For more details open the GuardDuty console at https://console.aws.amazon.com/guardduty/home?region=&lt;region&gt;#/findings?search=id%3D&lt;Finding_ID&gt;&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8L3EkmhLk1V2b43t0A54Cw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yd0AjbnR8ftYZ3GPjnmz3Q.png" /></figure><p>After This Review and Create. and we are done with eventbridge.</p><p>And Now the Last Step isGuardDuty -&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3W4XzdyjcS2tztMQbXdJ5w.png" /></figure><p>after Enabling the GuardDuty -&gt; go the settings -&gt; Finding Export Options</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1eVoVcYUc_I7znCkfH4XZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DzJhMSAgHpI1Pwp1EcTqcw.png" /></figure><p>This Setting will trigger Eventbridge at every 15 min. now we need some findings in dashboard. we can create this findings in simulation manner by attacking resource in real time or Aws has provided sample finding option for easy way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jReYrI4mkZ8yKdephsczSw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TXXDkHBjLJfChwS6At0GCg.png" /></figure><p>GuardDuty generated some sample findings in dashboard lets see we got email alert or not</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1j5cwZyVF-0zk1b7_0JH5w.png" /></figure><p>we got alert through email. now Security Team or SOC team can take action on this.</p><p>Happy hacking ……!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*rCkF6xOabk3ADGsod8ilJQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=991b6fb3c8ce" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/defending-aws-assets-through-email-alerts-991b6fb3c8ce">Defending AWS Assets through Email alerts.</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing Your Infra: Exploring Nuclei’s Defense Arsenal]]></title>
            <link>https://infosecwriteups.com/securing-your-infra-exploring-nucleis-defense-arsenal-783c193a84c1?source=rss-7d9ccad64584------2</link>
            <guid isPermaLink="false">https://medium.com/p/783c193a84c1</guid>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Ajay Magar]]></dc:creator>
            <pubDate>Wed, 14 Jun 2023 10:27:39 GMT</pubDate>
            <atom:updated>2023-06-20T05:53:07.303Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Folks I came up with a New Project in Devsecops. This Project is Inspired by this ProjectDiscovery blog — <a href="https://blog.projectdiscovery.io/implementing-nuclei-into-your-github-ci-cd-for-scanning-live-web-applications/">https://blog.projectdiscovery.io/implementing-nuclei-into-your-github-ci-cd-for-scanning-live-web-applications/</a></p><p><strong><em>Our Main goal is to run Nuclei In Infrastructure to Dectect Vulnerabilities in early development and in Internal Apps.</em></strong></p><p>I tried this above Project from projectdiscovery In Our Github CI/CD and Noticed Some Limitations.</p><ol><li>workflows taking to much time to complete beacause of nuclei.</li><li>Not able to Scan Internal apps which are not hosted Publically { might be possible on self hosted runner}</li></ol><p>Now Days Everyone Switching to Kubernestes and Microservices. So we are</p><blockquote><strong>How Devops Team Can Use this As DAST in CI/CD -&gt; Microservices has service endpoints like this http://api-backend.default.svc.cluster.local:9000 collect all these service endpoints in file called urls.txt and give this file as a input to nuclei. Now how nuclei will access this urls? deploy nuclei in K8s cluster as Cronjob and trigger the job after Push commit in master branch</strong></blockquote><p>I am Using <strong>GKE Cluster</strong> and hosted some Microservices over there.</p><p>You can use any Service EKS , AKS , GKE ..etc</p><pre>gcloud container clusters create clustername --num-nodes=3.<br><br># command to create Cluster In google Cloud</pre><p>Demo of Internal app Microservice.</p><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: myapp<br>spec:<br>  replicas: 2<br>  selector:<br>    matchLabels:<br>      app: myapp<br>  template:<br>    metadata:<br>      labels:<br>        app: myapp<br>    spec:<br>      containers:<br>      - name: myapp<br>        image: Yourname/Yourapp<br>        ports:<br>        - containerPort: 3000<br><br>---<br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: myapp<br>spec:<br>  type: ClusterIP<br>  selector:<br>    app: myapp<br>  ports:<br>  - port: 8080<br>    targetPort: 3000</pre><p>As you Can see i am Using ClusterIP and not Loadbalancer so No One Can Access this Publically.</p><p>For demo Purpose I hosted 4 Services in my Cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NiRfT0jjDIbH4f8gLtXvMA.png" /></figure><p>So how Nuclei Works in K8s? I made a CronJob to Run Nuclei on these Services urls { FQDN URLS }. CronJob will Run on Every Midnight. Also we can trigger the Job By kubectl Command so After Successful Build we can scan apps for Vulnerabilities.</p><p>urls.txt</p><pre># FQDN URLS <br>http://juiceapp.default.svc.cluster.local:9000<br>http://myapp.default.svc.cluster.local:8080<br>http://myapi.default.svc.cluster.local:5000<br>http://djangoboy.default.svc.cluster.local:8086<br><br># This is how we can Access Internal apps in K8s</pre><p>Main Script Where Nuclei Run — nuclei-scan.sh</p><pre><br>#!/bin/bash<br><br>nuclei -update-templates.   # Update to install New Templates <br># delte Unwanted Templates<br>rm -rf /root/nuclei-templates/iot /root/nuclei-templates/token-spray  /root/nuclei-templates/network /root/nuclei-templates/miscellaneous /root/nuclei-templates/technologies  /root/nuclei-templates/dns /root/nuclei-templates/osint /root/nuclei-templates/misconfiguration/http-missing-security-headers.yaml  /root/nuclei-templates/cves/2016/CVE-2016-6210.yaml  /root/nuclei-templates/cves/2018/CVE-2018-15473.yaml  /root/nuclei-templates/cves/2017/CVE-2017-5487.yaml /root/nuclei-templates/ssl <br>rm -rf /root/nuclei-templates/http/iot /root/nuclei-templates/http/token-spray /root/nuclei-templates/http/network /root/nuclei-templates/http/miscellaneous /root/nuclei-templates/http/technologies /root/nuclei-templates/http/dns /root/nuclei-templates/http/osint<br><br>echo &quot;scan started&quot; | notify -silent<br><br># Nuclei Run Command <br>nuclei -t /root/nuclei-templates -l ./urls.txt  --severity low,high,medium,critical -o nucleiop.txt<br><br># get Output in Discord Or Slack Channel. Also you can create Jira ticket read Docs.<br>cat nucleiop.txt | notify -silent <br><br>echo &quot;scan completed&quot; | notify -silent</pre><p>Dockerfile to create Image for Above Script</p><pre>FROM golang:1.20-bullseye<br><br>RUN go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest<br><br>RUN go install -v github.com/tomnomnom/anew@latest &amp;&amp; \<br>    go install -v github.com/projectdiscovery/notify/cmd/notify@latest<br><br>WORKDIR /app<br><br>COPY ./nuclei_scan .       # above bash script <br><br>COPY ./urls.txt .        # list of FQDN urls <br><br><br>COPY ./provider-config.yaml /root/.config/notify/provider-config.yaml # config file for notify<br><br><br>RUN chmod +x nuclei_scan<br><br><br>CMD [&quot;sh&quot; ,&quot;nuclei_scan&quot;]</pre><pre>docker build -t yourreponame/imagename:latest<br><br>docker push yourreponame/imagename:latest</pre><p>Cronjob manifest file</p><pre>apiVersion: batch/v1<br>kind: CronJob<br>metadata:<br>  name: nuclei-scan-cronjob<br>spec:<br>  schedule: &quot;0 0 * * *&quot;<br>  jobTemplate:<br>    spec:<br>      template:<br>        spec:<br>          dnsPolicy: ClusterFirst<br>          dnsConfig:<br>            nameservers:<br>              - 8.8.8.8<br>          containers:<br>            - name: nuclei-scan-container<br>              image: yourreponame/imagename:latest<br>          restartPolicy: OnFailure</pre><pre>kubectl apply -f cronjob.yaml </pre><p>You can trigger this job manually by Kubectl command</p><pre>kubectl create job --from=cronjob/nuclei-scan-cronjob nuclei-scan-manual</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T-9tPvzs5twFzUhKuto34Q.png" /></figure><p>Now how to use this in CI/CD. I am using github-action workflows for this</p><pre>name: CI/CD<br>on:<br>  push:<br>    branches:<br>      - main<br>      - master<br>jobs:<br>  build-and-deploy:<br>    runs-on: ubuntu-latest<br>    steps:<br>    - uses: actions/checkout@v2<br><br>    - name: Configure Google Cloud SDK<br>      uses: google-github-actions/setup-gcloud@v0.3.0<br>      with:<br>          project_id: yourProjectName<br>          service_account_key: ${{ secrets.GCP_SA_KEY }}<br><br>    - name: Trigger the Job<br>      run: |<br>          gcloud container clusters get-credentials YourClusterName --region=RegionName<br>          kubectl create job --from=cronjob/nuclei-scan-cronjob nuclei-scan-manual</pre><p>this is basic workflow there are multiple jobs in CI/CD process i am just showing how to configure GKE cluster in github-action and trigger the Job</p><pre>service_account_key: ${{ secrets.GCP_SA_KEY }}.<br>Go the google Cloud console -&gt; IAM -&gt; Service Account -&gt; keys - JSON KEYS <br>store that JSON key in Github Secrets.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I0Wb-40ZcOxo6kAOoKm_8w.png" /></figure><p>After Successful Build we can trigger the Job to Scan the Apps.</p><p>I used <strong>Notify tool from Projectdiscovery</strong> to send the nuclei output to my Discord Server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*C2bGxMZR4JldNB-79tAzlg.png" /></figure><p>Follow me on Linkdein</p><p><a href="https://www.linkedin.com/in/ajay-magar/">https://www.linkedin.com/in/ajay-magar/</a></p><p><a href="https://twitter.com/Ajay__magar">JavaScript is not available.</a></p><p>Happy Hacking :))</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=783c193a84c1" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/securing-your-infra-exploring-nucleis-defense-arsenal-783c193a84c1">Securing Your Infra: Exploring Nuclei’s Defense Arsenal</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hunt The Hacker]]></title>
            <link>https://infosecwriteups.com/hunt-the-hacker-d270c1a44c07?source=rss-7d9ccad64584------2</link>
            <guid isPermaLink="false">https://medium.com/p/d270c1a44c07</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[devsecops]]></category>
            <dc:creator><![CDATA[Ajay Magar]]></dc:creator>
            <pubDate>Fri, 21 Apr 2023 08:04:03 GMT</pubDate>
            <atom:updated>2023-04-24T15:06:50.188Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, Folks today’s writeup is about the devsecops project.</p><p>SIEM — Security Information and Event Management. Tons of platforms who offer this service. but I thought let us create one a customize, simple and inhouse.</p><p>Insufficient Logging and Monitoring — OWASP introduce this as an Application Risk in 2017.</p><p>Security Logging Project :- This project looks like GuardDuty in aws. GuardDuty collect logs from cloudtrail and check for malicious activity and Threat. and also alert the Security Team if any malicious activity is logged.</p><p>I am doing the same thing collecting logs through Fluentd sending these logs to Elasticsearch Server. after that i wrote a script in nodejs which hit the elasticsearch server for malicios logs and alert the team via discord App.</p><blockquote><strong>Tools and Tech use — K8s clsuter , nginx-ingress controller , Node-js app deployment , Elasticsearch , Kibana and Fluentd.</strong></blockquote><p>This is an Era Of Microservices And Kubernetes so we implementing this Project in Kubernetes — GKE — Google Cloud. All The Cloud services are the same EKS GKE AKS you can use any.</p><blockquote><strong>The Most Important part of the Project is Script which hit the elasticsearch api and the query will run in output we will get Malicious logs and then we send these logs to the Discord server via Webhook. you can skip EFK stack deployment if you know how to do that.</strong></blockquote><p>Spinn up The Cluster &gt; get the kubeconfig file &gt; config the kubectl</p><ol><li>Set the region in Gcloud command line</li></ol><pre>gcloud config set compute/zone us-central1-a  # choose any region you want</pre><p>2. Create Cluster using gcloud command line</p><pre>gcloud container clusters create clustername --num-nodes=3    # one master and 2 worker nodes</pre><p>3. configure the kubectl</p><pre>gcloud container clusters get-credentials clustername <br><br># this will automatically configure your kubectl. </pre><p>Now Our Cluster is Up and Running you can check this by using this command.</p><p>kubectl get nodes</p><p>2.1 Lets First deploy nginx-ingress controller and Nodejs app as a replicaset</p><p>Nginx-ingress contoller — i think nginx don’t need any introduction it’s popular Reverse Proxy.</p><p>I find this document very useful for installtion of ingress <a href="https://kubernetes.github.io/ingress-nginx/deploy/#quick-start">https://kubernetes.github.io/ingress-nginx/deploy/#quick-start</a></p><p>For GKE — Commands</p><pre>kubectl create clusterrolebinding cluster-admin-binding \<br>  --clusterrole cluster-admin \<br>  --user $(gcloud config get-value account)</pre><pre>kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.7.0/deploy/static/provider/cloud/deploy.yaml</pre><p>above yaml file will create a namespace called ingress-nginx and will deploy pods and services under that namespace also it will create a Loadbalancer to distribute the load across the apps.</p><pre>kubectl get svc -n ingress-nginx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*baTeQrOo_yVQM9_hMAiEjg.png" /><figcaption>Loadbalancer -service</figcaption></figure><p>you can point out this load balancer ip to your domain name — [ Optional ]</p><p>Now Deploy any Sample app using nginx-ingress — demo yaml file which i use</p><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: myapp<br>spec:<br>  replicas: 2         # 2 pods will create<br>  selector:<br>    matchLabels:<br>      app: myapp<br>  template:<br>    metadata:<br>      labels:<br>        app: myapp<br>    spec:<br>      containers:<br>      - name: myapp<br>        image: ajaymagar/nodeapp    # this is mine demo nodejs app <br>        ports:<br>        - containerPort: 3000     # change this according to your app <br><br>---<br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: myapp<br>spec:<br>  type: ClusterIP<br>  selector:<br>    app: myapp<br>  ports:<br>  - port: 8080          <br>    targetPort: 3000    # change this according to your app<br><br>---<br>apiVersion: networking.k8s.io/v1<br>kind: Ingress<br>metadata:<br>  name: myapp-app<br>  annotations:<br>    kubernetes.io/ingress.class: &quot;nginx&quot;<br>    nginx.ingress.kubernetes.io/ssl-redirect: &quot;false&quot;<br>spec:<br>  rules:<br>  - host: tech.ajaymagar.in         # change this or remove this <br>    http:<br>      paths:<br>      - pathType: Prefix<br>        path: &quot;/&quot;                     # as per your app <br>        backend:<br>          service:<br>            name: myapp<br>            port:<br>              number: 8080      </pre><p>now deploy this App in default namespace</p><pre>kubectl apply -f deployment.yaml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jBX5A15eInsRDGMJMRL3Sg.png" /><figcaption>My Demo NodejsApp</figcaption></figure><blockquote><strong><em>Deployment of EFK Stack</em></strong></blockquote><pre>kubectl create namespace kube-logging</pre><p>we will deploy EFK stack in kube-logging namespace</p><p>Create a Secret for elastic-search and kibana actullay we storing a password here to authenticate a elastisearch api and kibana use this to access the elasticsearch data</p><pre>apiVersion: v1<br>kind: Secret<br>metadata:<br>  name: kibana-password<br>  namespace: kube-logging<br>type: Opaque<br>data:<br>  password: cGFzc3dvcmQ=</pre><p>kubectl apply -f secret.yaml</p><blockquote><strong>Elasticsearch is a server where we gather all the logs and process those logs . elastic server create api endpoints for us so we can query the data and can get accurate data as we want.</strong></blockquote><p>Now deploy Elasticsearch — first we will deploy the headless elasticsearch service</p><pre>kind: Service<br>apiVersion: v1<br>metadata:<br>  name: elasticsearch<br>  namespace: kube-logging<br>  labels:<br>    app: elasticsearch<br>spec:<br>  selector:<br>    app: elasticsearch<br>  clusterIP: None<br>  ports:<br>    - port: 9200<br>      name: rest<br>    - port: 9300<br>      name: inter-node</pre><p>kubectl apply -f es-svc.yaml</p><p>Elasticsearch Server as StatefulSet</p><pre>apiVersion: apps/v1<br>kind: StatefulSet<br>metadata:<br>  name: es-cluster<br>  namespace: kube-logging<br>spec:<br>  serviceName: elasticsearch<br>  replicas: 3<br>  selector:<br>    matchLabels:<br>      app: elasticsearch<br>  template:<br>    metadata:<br>      labels:<br>        app: elasticsearch<br>    spec:<br>      containers:<br>      - name: elasticsearch<br>        image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0<br>        ports:<br>        - containerPort: 9200<br>          name: rest<br>          protocol: TCP<br>        - containerPort: 9300<br>          name: inter-node<br>          protocol: TCP<br>        volumeMounts:<br>        - name: data<br>          mountPath: /usr/share/elasticsearch/data<br>        env:<br>          - name: cluster.name<br>            value: k8s-logs<br>          - name: node.name<br>            valueFrom:<br>              fieldRef:<br>                fieldPath: metadata.name<br>          - name: discovery.seed_hosts<br>            value: &quot;es-cluster-0.elasticsearch,es-cluster-1.elasticsearch,es-cluster-2.elasticsearch&quot;<br>          - name: cluster.initial_master_nodes<br>            value: &quot;es-cluster-0,es-cluster-1,es-cluster-2&quot;<br>          - name: network.host<br>            value: &quot;0.0.0.0&quot;<br>          - name: xpack.security.enabled<br>            value: &quot;true&quot;<br>          - name: xpack.monitoring.collection.enabled<br>            value: &quot;true&quot;   <br>          - name: ES_JAVA_OPTS<br>            value: &quot;-Xms512m -Xmx512m&quot;   <br>          - name: ELASTIC_PASSWORD<br>            valueFrom:<br>              secretKeyRef:<br>                name: kibana-password<br>                key: password     <br>      initContainers:<br>      - name: fix-permissions<br>        image: busybox<br>        command: [&quot;sh&quot;, &quot;-c&quot;, &quot;chown -R 1000:1000 /usr/share/elasticsearch/data&quot;]<br>        securityContext:<br>          privileged: true<br>        volumeMounts:<br>        - name: data<br>          mountPath: /usr/share/elasticsearch/data<br>      - name: increase-vm-max-map<br>        image: busybox<br>        command: [&quot;sysctl&quot;, &quot;-w&quot;, &quot;vm.max_map_count=262144&quot;]<br>        securityContext:<br>          privileged: true<br>      - name: increase-fd-ulimit<br>        image: busybox<br>        command: [&quot;sh&quot;, &quot;-c&quot;, &quot;ulimit -n 65536&quot;]<br>        securityContext:<br>          privileged: true<br>  volumeClaimTemplates:<br>  - metadata:<br>      name: data<br>      labels:<br>        app: elasticsearch<br>    spec:<br>      accessModes: [ &quot;ReadWriteOnce&quot; ]<br>#      storageClassName: do-block-storage<br>      resources:<br>        requests:<br>          storage: 3Gi</pre><p>Kubectl apply -f es-sts.yaml</p><p><strong><em>kibana is a visualization dashboard for elasticsearch. kibana use elastic api to show the data</em></strong></p><p>Now deploy Kibana headless Service</p><pre>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: kibana<br>  namespace: kube-logging<br>  labels:<br>    app: kibana<br>spec:<br>  ports:<br>  - port: 5601<br>  selector:<br>    app: kibana</pre><p>kubectl apply -f kib-svc.yaml</p><p>Now Kibana as a deployment</p><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: kibana<br>  namespace: kube-logging<br>  labels:<br>    app: kibana<br>spec:<br>  replicas: 1<br>  selector:<br>    matchLabels:<br>      app: kibana<br>  template:<br>    metadata:<br>      labels:<br>        app: kibana<br>    spec:<br>      containers:<br>      - name: kibana<br>        image: docker.elastic.co/kibana/kibana:7.2.0<br>        env:<br>          - name: ELASTICSEARCH_URL<br>            value: http://elasticsearch:9200<br>          - name: ELASTICSEARCH_USERNAME<br>            value: elastic<br>          - name: ELASTICSEARCH_PASSWORD<br>            valueFrom:<br>              secretKeyRef:<br>                name: kibana-password<br>                key: password<br>        ports:<br>        - containerPort: 5601<br>          name: kibana<br>          protocol: TCP</pre><p>kubectl apply -f kibana-deploy.yaml</p><p>Actually, we don’t need kibana as such in this Project. But just to check if everything is working fine we deployed kibana</p><p><strong><em>fluentd — the logg collecter- fluentd is responsible to collect logs from every node and send all the logs to elasticsearch for processing.</em></strong></p><p>manifest files — Service account and role binding to deploy fluend</p><pre>apiVersion: v1<br>kind: ServiceAccount<br>metadata:<br>  name: fluent-bit-sa<br>  namespace: kube-logging<br>  labels:<br>    app: fluent-bit-sa<br><br>----<br><br>apiVersion: rbac.authorization.k8s.io/v1<br>kind: ClusterRole<br>metadata:<br>  name: fluent-bit-role<br>  labels:<br>    app: fluent-bit-role<br>rules:<br>  - nonResourceURLs:<br>      - /metrics<br>    verbs:<br>      - get<br>  - apiGroups: [&quot;&quot;]<br>    resources:<br>      - namespaces<br>      - pods<br>      - pods/logs<br>    verbs: [&quot;get&quot;, &quot;list&quot;, &quot;watch&quot;]<br><br>----<br><br>kind: ClusterRoleBinding<br>apiVersion: rbac.authorization.k8s.io/v1<br>metadata:<br>  name: fluent-bit-rb<br>roleRef:<br>  kind: ClusterRole<br>  name: fluent-bit-role<br>  apiGroup: rbac.authorization.k8s.io<br>subjects:<br>- kind: ServiceAccount<br>  name: fluent-bit-sa<br>  namespace: kube-logging</pre><p>kubectl apply -f flueCRB.yaml</p><p>ConfigMap for Fluentd</p><pre>apiVersion: v1<br>kind: ConfigMap<br>metadata:<br>  name: fluent-bit-config<br>  namespace: kube-logging<br>  labels:<br>    k8s-app: f-bit-pod<br>data:<br>  # Configuration files: server, input, filters and output<br>  # ======================================================<br>  # Path /var/log/containers/ingress-nginx-controller-*.log  -&gt; we only collecting ingress logs which we need for this project<br>  fluent-bit.conf: |<br>    [SERVICE]<br>        Flush         1<br>        Log_Level     info<br>        Daemon        off<br>        Parsers_File  parsers.conf<br>        HTTP_Server   On<br>        HTTP_Listen   0.0.0.0<br>        HTTP_Port     2020<br><br>    @INCLUDE input-kubernetes.conf<br>    @INCLUDE filter-kubernetes.conf<br>    @INCLUDE output-elasticsearch.conf<br><br>  input-kubernetes.conf: |<br>    [INPUT]<br>        Name              tail<br>        Tag               kube.*<br>        Path              /var/log/containers/ingress-nginx-controller-*.log   <br>        Parser            docker<br>        DB                /var/log/flb_kube.db<br>        Mem_Buf_Limit     5MB<br>        Skip_Long_Lines   On<br>        Refresh_Interval  10<br><br>  filter-kubernetes.conf: |<br>    [FILTER]<br>        Name                kubernetes<br>        Match               kube.*<br>        Kube_URL            https://kubernetes.default.svc:443<br>        Kube_CA_File        /var/run/secrets/kubernetes.io/serviceaccount/ca.crt<br>        Kube_Token_File     /var/run/secrets/kubernetes.io/serviceaccount/token<br>        Kube_Tag_Prefix     kube.var.log.containers.*<br>        Merge_Log           On<br>        Merge_Log_Key       log_processed<br>        K8S-Logging.Parser  On<br>        K8S-Logging.Exclude Off<br><br>  output-elasticsearch.conf: |<br>    [OUTPUT]<br>        Name            es<br>        Match           *<br>        Host            ${FLUENT_ELASTICSEARCH_HOST}<br>        Port            ${FLUENT_ELASTICSEARCH_PORT}<br>        HTTP_User       ${FLUENT_ELASTICSEARCH_USER}<br>        HTTP_Passwd     ${FLUENT_ELASTICSEARCH_PASSWORD}<br>        Logstash_Format On<br>        Replace_Dots    On<br>        Retry_Limit     False<br><br>  parsers.conf: |<br>    [PARSER]<br>        Name   nginx<br>        Format regex<br>        Regex ^(?&lt;remote&gt;[^ ]*) (?&lt;host&gt;[^ ]*) (?&lt;user&gt;[^ ]*) \[(?&lt;time&gt;[^\]]*)\] &quot;(?&lt;method&gt;\S+)(?: +(?&lt;path&gt;[^\&quot;]*?)(?: +\S*)?)?&quot; (?&lt;code&gt;[^ ]*) (?&lt;size&gt;[^ ]*)(?: &quot;(?&lt;referer&gt;[^\&quot;]*)&quot; &quot;(?&lt;agent&gt;[^\&quot;]*)&quot;)?(?&lt;request_body&gt;.*)$<br>        Time_Key time<br>        Time_Format %d/%b/%Y:%H:%M:%S %z</pre><p>kubectl apply -f flucon.yaml</p><ul><li>we deploying fluentd as Daemonset. what that mean Daemonset means on every nodes there will be one pod of fluentd which will collect logs.</li></ul><pre>apiVersion: apps/v1<br>kind: DaemonSet<br>metadata:<br>  name: f-bit-pod<br>  namespace: kube-logging<br>  labels:<br>    k8s-app: fluent-bit-logging<br>    version: v1<br>    kubernetes.io/cluster-service: &quot;true&quot;<br>spec:<br>  selector:<br>    matchLabels:<br>      k8s-app: fluent-bit-logging<br>  template:<br>    metadata:<br>      labels:<br>        k8s-app: fluent-bit-logging<br>        version: v1<br>        kubernetes.io/cluster-service: &quot;true&quot;<br>      annotations:<br>        prometheus.io/scrape: &quot;true&quot;<br>        prometheus.io/port: &quot;2020&quot;<br>        prometheus.io/path: /api/v1/metrics/prometheus<br>    spec:<br>      containers:<br>      - name: fluent-bit<br>        image: fluent/fluent-bit:1.3.11<br>        imagePullPolicy: Always<br>        ports:<br>          - containerPort: 2020<br>        env:<br>        - name: FLUENT_ELASTICSEARCH_HOST<br>          value: &quot;elasticsearch&quot;<br>        - name: FLUENT_ELASTICSEARCH_PORT<br>          value: &quot;9200&quot;<br>        - name: FLUENT_ELASTICSEARCH_USER<br>          value: &quot;elastic&quot;<br>        - name: FLUENT_ELASTICSEARCH_PASSWORD<br>          valueFrom:<br>            secretKeyRef:<br>              name: kibana-password<br>              key: password<br>        volumeMounts:<br>        - name: varlog<br>          mountPath: /var/log<br>        - name: varlibdockercontainers<br>          mountPath: /var/lib/docker/containers<br>          readOnly: true<br>        - name: fluent-bit-config<br>          mountPath: /fluent-bit/etc/<br>      terminationGracePeriodSeconds: 10<br>      volumes:<br>      - name: varlog<br>        hostPath:<br>          path: /var/log<br>      - name: varlibdockercontainers<br>        hostPath:<br>          path: /var/lib/docker/containers<br>      - name: fluent-bit-config<br>        configMap:<br>          name: fluent-bit-config<br>      serviceAccountName: fluent-bit-sa<br>      tolerations:<br>      - key: node-role.kubernetes.io/master<br>        operator: Exists<br>        effect: NoSchedule<br>      - operator: &quot;Exists&quot;<br>        effect: &quot;NoExecute&quot;<br>      - operator: &quot;Exists&quot;<br>        effect: &quot;NoSchedule&quot;</pre><p>We are Done with EFK Stack deployment</p><p><strong><em>The Most Important and Intestering Part Will begin From here</em></strong></p><p>I write a Script in node-js that query the elasticsearch api for the last 15 min logs and by using regex it checks if payloads like Sqli ,LFI , command injection etc are there in logs or not. and the best part of this script is we can customize our payload to check the logs. For example when LOG4j came hackers using the same payloads over all the internet</p><pre>npm init -y<br>sudo npm install axios elasticsearch form-data<br>touch app.js</pre><p>lets Understand this script in Parts</p><ol><li>Query the elasticsearch api</li></ol><pre>const axios = require(&#39;axios&#39;)<br><br>const elasticsearch = require(&#39;elasticsearch&#39;);<br>const host = &#39;http://elasticsearch:9200&#39;; // change to localhost when running in local system<br>const indexPattern = &#39;logstash-*&#39;; // Elasticsearch index pattern | define in fluentd configmap file<br>const username = &#39;elastic&#39;; // Elasticsearch username for basic authentication<br>const password = &#39;password&#39;; // Elasticsearch password for basic authentication<br><br>const client = new elasticsearch.Client({<br>    host,<br>    httpAuth: `${username}:${password}`,<br>})<br>const paths = [&#39;/etc/passwd&#39;,&#39;/.git&#39;,&#39;/.git/config&#39;,&#39;sleep&#39;,&#39;sysdate&#39;,&#39;config&#39;,&#39;/.ssh&#39;,&#39;/.aws&#39;,&#39;/.config&#39;];<br>// you can add more signature as per your creativity <br>const query = {<br>  bool: {<br>    must: [<br>      {<br>        range: {<br>          &#39;@timestamp&#39;: {<br>            gte: &#39;now-15m&#39;,<br>            lte: &#39;now&#39;,<br>          },<br>        },<br>      },<br>      {<br>        bool: {<br>          should: [<br>            {<br>              bool: {<br>                should: paths.map(path =&gt; ({<br>                  match_phrase: {<br>                    log: path,<br>                  },<br>                })),<br>              },<br>            },<br>            {<br>              regexp: {<br>                log: &quot;.*\\.php.*&quot;          // this regex will find if anyone trying to access php file on server<br>              }<br>            },<br>            {<br>              regexp: {<br>                log: &quot;.*\\.yaml.*&quot;        // this regex will find if anyone trying to access yaml files on server<br>              }<br>            },<br>          ],<br>        }<br>      }<br>    ],<br>  },<br>};<br><br>client.search({<br>    index: indexPattern,<br>    scroll: &#39;30s&#39;, // how long a consistent view of the index should be maintained<br>    size: 1000, // how many hits to return per batch<br>    body: {<br>      query,<br>    },<br>  }).then(response =&gt; {<br>    console.log(`Found ${response.hits.total.value} logs:`);<br>    const realdata = response.hits.hits.map(data=&gt;{<br>        return data._source.log<br>      })<br>    console.log(realdata)  // we can see Log Files in coomand line by running this in localhost<br>}).catch(error =&gt; {<br>    console.error(`Error querying Elasticsearch: ${error}`);<br>});</pre><p><strong><em>kubectl port-fortward svc elasticsearch -n kube-logging</em></strong></p><p>i port-forwarded Elasticsearch Service to my Localhost and ran this script to check Output</p><p>node app.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y31QLvccQ8i5YcMNKHIeIA.png" /><figcaption>logs</figcaption></figure><p><strong><em>As you can see in logs i found out someone using sql payloads to check sql injection attacks in api and parameter. now security team can take action on this.</em></strong></p><p>Now i want to Send these logs to the Discord channel i created Webhook. but webhook has limitation to send the Data. To overcome this Problem i saved all the Logs in temp File sent that temp file as an attachement to my discord wenhook and deleted that temp file right after that</p><pre>const axios = require(&#39;axios&#39;);<br>const fs = require(&#39;fs&#39;);<br>const FormData = require(&#39;form-data&#39;);<br>const path = require(&#39;path&#39;);<br><br>const discordWebhookUrl = &#39;url&#39;;<br><br>const realdata   // data that came from elastic search api<br><br><br>async function sendToDiscordWebhook(webhookUrl, data) {<br>  try {<br>    // Write data to a temporary file<br>    const tempFilePath = path.join(__dirname, &#39;temp.txt&#39;);<br>    fs.writeFileSync(tempFilePath, JSON.stringify(data), &#39;utf-8&#39;);<br><br>    // Create a FormData instance<br>    const formData = new FormData();<br>    formData.append(&#39;content&#39;, &#39;Malicios Logs Files&#39;);<br>    formData.append(&#39;file&#39;, fs.createReadStream(tempFilePath), &#39;data.txt&#39;);<br><br>    // Upload the FormData as a multipart/form-data request to Discord webhook<br>    const response = await axios.post(webhookUrl, formData, {<br>      headers: formData.getHeaders()<br>    });<br><br>    console.log(`Data sent to Discord webhook successfully. Response: ${response.status} ${response.statusText}`);<br><br>    // Delete the temporary file<br>    fs.unlinkSync(tempFilePath);<br>    console.log(`Temporary file deleted: ${tempFilePath}`);<br>  } catch (error) {<br>    console.error(`Failed to send data to Discord webhook. Error: ${error.message}`);<br>  }<br>}<br><br>sendToDiscordWebhook(discordWebhookUrl, realdata);<br></pre><p>Full Script</p><pre>const axios = require(&#39;axios&#39;);<br>const fs = require(&#39;fs&#39;);<br>const FormData = require(&#39;form-data&#39;);<br>const path = require(&#39;path&#39;);<br><br>const discordWebhookUrl = &#39;url&#39;;<br>const elasticsearch = require(&#39;elasticsearch&#39;)<br>const host = &#39;http://elasticsearch:9200&#39;; // change to localhost in local system<br>const indexPattern = &#39;logstash-*&#39;; // Elasticsearch index pattern<br>const username = &#39;elastic&#39;; // Elasticsearch username for basic authentication<br>const password = &#39;password&#39;; // Elasticsearch password for basic authentication<br><br>const client = new elasticsearch.Client({<br>    host,<br>    httpAuth: `${username}:${password}`,<br>});<br><br>const paths = [&#39;/etc/passwd&#39;,&#39;/.git&#39;,&#39;/.git/config&#39;,&#39;sleep&#39;,&#39;sysdate&#39;,&#39;config&#39;,&#39;/.ssh&#39;,&#39;/.aws&#39;,&#39;/.config&#39;];<br><br><br>const query = {<br>  bool: {<br>    must: [<br>      {<br>        range: {<br>          &#39;@timestamp&#39;: {<br>            gte: &#39;now-15m&#39;,<br>            lte: &#39;now&#39;,<br>          },<br>        },<br>      },<br>      {<br>        bool: {<br>          should: [<br>            {<br>              bool: {<br>                should: paths.map(path =&gt; ({<br>                  match_phrase: {<br>                    log: path,<br>                  },<br>                })),<br>              },<br>            },<br>            {<br>              regexp: {<br>                log: &quot;.*\\.php.*&quot;<br>              }<br>            },<br>            {<br>              regexp: {<br>                log: &quot;.*\\.yaml.*&quot;<br>              }<br>            },<br>          ],<br>        }<br>      }<br>    ],<br>  },<br>};<br><br><br>client.search({<br>    index: indexPattern,<br>    scroll: &#39;30s&#39;, // how long a consistent view of the index should be maintained<br>    size: 1000, // how many hits to return per batch<br>    body: {<br>      query,<br>    },<br>  }).then(response =&gt; {<br>    console.log(`Found ${response.hits.total.value} logs:`);<br>    const realdata = response.hits.hits.map(data=&gt;{<br>        return data._source.log<br>      })<br>    //console.log(realdata)<br><br><br>async function sendToDiscordWebhook(webhookUrl, data) {<br>  try {<br>    // Write data to a temporary file<br>    const tempFilePath = path.join(__dirname, &#39;temp.txt&#39;);<br>    fs.writeFileSync(tempFilePath, JSON.stringify(data), &#39;utf-8&#39;);<br><br>    // Create a FormData instance<br>    const formData = new FormData();<br>    formData.append(&#39;content&#39;, &#39;Malicios Logs Files&#39;);<br>    formData.append(&#39;file&#39;, fs.createReadStream(tempFilePath), &#39;data.txt&#39;);<br><br>    // Upload the FormData as a multipart/form-data request to Discord webhook<br>    const response = await axios.post(webhookUrl, formData, {<br>      headers: formData.getHeaders()<br>    });<br><br>    console.log(`Data sent to Discord webhook successfully. Response: ${response.status} ${response.statusText}`);<br><br>    // Delete the temporary file<br>    fs.unlinkSync(tempFilePath);<br>    console.log(`Temporary file deleted: ${tempFilePath}`);<br>  } catch (error) {<br>    console.error(`Failed to send data to Discord webhook. Error: ${error.message}`);<br>  }<br>}<br><br>sendToDiscordWebhook(discordWebhookUrl, realdata);<br><br>  }).catch(error =&gt; {<br>    console.error(`Error querying Elasticsearch: ${error}`);<br>});<br><br></pre><p>Now I want to run this script in my kubernetes cluster in every 15 minute so it will check for malicious activity and will alert to security team.</p><p>For this we need run Cron job in k8s cluster. before we need docker image to for this script. in that nodejs project create new Dockerfile</p><pre># Use a node.js base image<br>FROM node:14-alpine<br><br># Set the working directory<br>WORKDIR /app<br><br># Copy the code to the container<br>COPY . .<br><br># Install dependencies<br>RUN npm install<br><br># Start the application<br>CMD [&quot;node&quot;, &quot;app.js&quot;]</pre><p>docker build — platform=linux/arm64 — platform=linux/amd64 -t yourrepo/cronapp:latest .</p><p>docker push yourrepo/cronapp:latest</p><p>Now CronJob</p><pre>apiVersion: batch/v1<br>kind: CronJob<br>metadata:<br>  name: discord-alerts-cron<br>spec:<br>  schedule: &quot;*/15 * * * *&quot;<br>  jobTemplate:<br>    spec:<br>      template:<br>        spec:<br>          containers:<br>          - name: discord-alerts<br>            image: yourrepo/cronapp:latest<br>          restartPolicy: OnFailure</pre><pre>kubectl apply -f cronapp.yaml -n kube-logging</pre><p>you will get alert in every 15 min like this. you can increase time for alert it depends on org.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bQmBF8kdHp4Kj2Q2t9gK2A.png" /><figcaption>discord</figcaption></figure><p>You can find all the code here:-</p><p><a href="https://github.com/Ajaymagar/Hunt-The-Hacker">https://github.com/Ajaymagar/Hunt-The-Hacker</a></p><p>Follow me on Linkdein</p><p><a href="https://www.linkedin.com/in/ajay-magar/">https://www.linkedin.com/in/ajay-magar/</a></p><p>Happy Hacking :))</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*x010oNzhInev7GpV3ZFPcA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d270c1a44c07" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/hunt-the-hacker-d270c1a44c07">Hunt The Hacker</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Accidental Account takeover]]></title>
            <link>https://infosecwriteups.com/accidental-account-takeover-4301b56f4fb2?source=rss-7d9ccad64584------2</link>
            <guid isPermaLink="false">https://medium.com/p/4301b56f4fb2</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Ajay Magar]]></dc:creator>
            <pubDate>Sun, 09 Oct 2022 20:51:04 GMT</pubDate>
            <atom:updated>2022-10-10T13:09:34.785Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Security Community,</p><p>Let’s start the writeup. I was testing a team management App. There are multiple roles and permission level functions. At the sign page there is an email address and password based authentication system. So i sign up with my Admin , manager and readonly accounts using firefox container.</p><p>Email verification with token look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TcGrzbGq6xRjXuI70TIMaw.png" /><figcaption>email verification token link</figcaption></figure><p>I copied this url from my mail box in chrome. I saw this token is uuid based and unguessable. I moved forward in the dashboard to check other functions. while testing the app. I tried to copy a link but somehow it didn’t work. I opened a private window and pasted that link but that copied link didn’t work so my clipboard already has an email verification link. i was in hurry i didn’t saw what i pasted and i clicked searched i saw dashboard of target app. I thought that token is for one time use but i am wrong. Then i searched that token in burp search function i got to know that its userID of user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9crIPdyFMb7vOuorQfQAiw.png" /></figure><p>So i Started looking other users userID in responses of api. its team based app there is Users page i captured that request and in response i got userId of every user which are listed there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FSZwOh0bRX-3DSXBdZVsRg.png" /></figure><p>i got access of every employee which are in my team.</p><p>To increase the severity i started looking this userID in other part of application. then i found out feedback page where multiple users and company employee commenting on each other feedback. GOLDMINE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9j8A-RIUA2gGas7IoUNVzg.png" /></figure><p>i takeover employee account for poc.</p><p>Goodbye until next time!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*p1UPo-a4E-x3FC86Qflodw.png" /></figure><h4>From Infosec Writeups: A lot is coming up in the Infosec every day that it’s hard to keep up with. <a href="https://weekly.infosecwriteups.com/">Join our weekly newsletter</a> to get all the latest Infosec trends in the form of 5 articles, 4 Threads, 3 videos, 2 GitHub Repos and tools, and 1 job alert for FREE!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4301b56f4fb2" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/accidental-account-takeover-4301b56f4fb2">Accidental Account takeover</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Pentesting Setup On Macbook M1]]></title>
            <link>https://infosecwriteups.com/android-pentesting-setup-on-macbook-m1-d2f1f0a8db4b?source=rss-7d9ccad64584------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2f1f0a8db4b</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[andriod]]></category>
            <category><![CDATA[bugbounty-writeup]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Ajay Magar]]></dc:creator>
            <pubDate>Sat, 09 Apr 2022 20:03:19 GMT</pubDate>
            <atom:updated>2022-04-13T07:19:50.628Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello hackers,</p><p>as we know for Andriod pentesting we need Physical device or emulator. when i Started learning Andriod Pentesting i refer some videos And Blogs on internet everyone suggesting Genymotion emulator. after using it sometime i noticed its x-86 based Architecture so we cant test x-64 based Architecture Apps. also in Flutter based apps they have inbuit security for ssl pinning. recently i moved to Macbook m1 for my full time pentesting. M1 chips doesn’t support virtulization so there is no Virtualbox. And Gennymotion has dependency of virtualbox. without virtualbox its not gonna work. After some research i found better way than Gennymotion</p><p>for Emulator i Choose Andriod Studio. Andriod Studio have their virtual devices. Download latest Andriod studio from their Official Site. for installation you can refer any Youtube video its Simple.</p><h4>Android Studio Bumblebee 2021.1.1 Patch 3</h4><p><a href="https://developer.android.com/studio?gclid=CjwKCAjw3cSSBhBGEiwAVII0Z4hEm14aycDbNNrS0fAwH9rI-Ge77EObpqD6V_6DnppYgICNQEfk7BoCKPkQAvD_BwE&amp;gclsrc=aw.ds">https://developer.android.com/studio?gclid=CjwKCAjw3cSSBhBGEiwAVII0Z4hEm14aycDbNNrS0fAwH9rI-Ge77EObpqD6V_6DnppYgICNQEfk7BoCKPkQAvD_BwE&amp;gclsrc=aw.ds</a></p><p>After installation Open Andriod Studio and create One device</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_2U26X9390KuAUQcpa4rOg.png" /></figure><p>I choose Pixel2 API level — 32 arm64-v8a</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YhIU9P8lDhDB1rQX0KiGww.png" /></figure><p>Every Mordern app support this Configuration.</p><p>After creating Device copy the device name on clipboard. go to this Path. /Users/yourName/Library/Android/sdk/emulator and then open Emulator with this command <strong>./emulator -avd Pixel2 -writable-system</strong></p><p>Pixel2 is my customize device name in your case it will be different To find your device name use this command .<strong>/emulator -list-avds </strong>and -writable -system is very imp to install burp certificate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bVh-EywREryrTno9c-kljQ.png" /></figure><p>Most Important part Comes here Installation of Burpsuite Certificate as system level Trusted CA this is permeant solution to SSL pinning.</p><p>All Trusted CA are stored in this path <strong>/system/etc/security/cacerts</strong> in Andriod. root privileges with some modification allows us to add our certificate here</p><p><strong>Export and convert the Burp CA</strong> The first step is to get the Burp CA in the right format. Using Burp Suite, export the CA Certificate in DER format. I saved it as cacert.der</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jCBbwwDw6swUdKPml3aT7g.png" /></figure><p>Android wants the certificate to be in PEM format, and to have the filename equal to the subject_hash_old value appended with .0.</p><p>Use openssl to convert DER to PEM, then output the subject_hash_old and rename the file:</p><pre>openssl x509 -inform DER -in cacert.der -out cacert.pem</pre><pre>openssl x509 -inform PEM -subject_hash_old -in cacert.pem | head -1<br>9a5ba575.     #output hash value </pre><pre>mv cacert.pem 9a5ba575.0        # change name     </pre><p><strong>Copy the certificate to the device</strong> We can use adb to copy the certificate over, but since it has to be copied to the /system filesystem, we have to remount it as <strong>writable</strong>. As root, this is easy with adb remount.</p><p>./emulator -avd Pixel2 -<strong>writable-system. # for this -writable-system is IMP</strong></p><pre>adb root<br>adb remount<br>adb push 9a5ba575.0 /sdcard/</pre><p>The just drop into a shell (adb shell) and move the file to /system/etc/security/cacerts and chmod it to 644:</p><pre>mv /sdcard/9a5ba575.0 /system/etc/security/cacerts/<br>chmod 644 /system/etc/security/cacerts/9a5ba575.0</pre><p>Now reboot emulator with <strong>adb reboot </strong>and Start proxying with Burpsuite</p><p>copy IVP4 address of machine open Extended control in emulator then go to the proxy tab — Manual Proxy Configuration — Hostname and Port name as per your. Burpsuite Configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H8ZH2wn4cgfOdVC1P6Q97A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6dGAuk2Kip6YgQacZyHHSA.png" /></figure><p>We are good to go now.</p><p>Happy Hacking …..!</p><p><a href="https://www.linkedin.com/in/ajay-magar/">Ajay Magar - Security Researcher - HackerOne | LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2f1f0a8db4b" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/android-pentesting-setup-on-macbook-m1-d2f1f0a8db4b">Android Pentesting Setup On Macbook M1</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automation And Django Debug]]></title>
            <link>https://magarajay538.medium.com/automation-and-django-debug-1ea9452af957?source=rss-7d9ccad64584------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ea9452af957</guid>
            <dc:creator><![CDATA[Ajay Magar]]></dc:creator>
            <pubDate>Fri, 04 Feb 2022 18:50:48 GMT</pubDate>
            <atom:updated>2022-02-04T18:52:46.045Z</atom:updated>
            <content:encoded><![CDATA[<p>Today i am Going Cover how Automation helps in Bug Bounty. And How i approach to this And Second Topic Will Be Django Debug=True</p><h3><strong>Open S3 Bucket With All Permission</strong></h3><p>Always Check JavaScript Files for hardcoded credentials , api Keys , api endpoints and for S3-buckets Also. But there Are two many files and we dont have time so what to do.</p><p>we have Some Cool Tools To Automate this Process</p><p><a href="https://github.com/003random/getJS">GitHub - 003random/getJS: A tool to fastly get all javascript sources/files</a></p><p>getJS To Download All JavaScript Files.</p><p><a href="https://github.com/tomnomnom/gf">GitHub - tomnomnom/gf: A wrapper around grep, to help you grep for things</a></p><p>Gf is a wrapper Around Grep and made by legend <a href="https://github.com/tomnomnom">https://github.com/tomnomnom</a></p><p>js-beautify tool to beautify the Javascript Code</p><p>bash Function</p><p>JShunter(){</p><p>getJS — input domains.txt — complete — resolve | xargs wget</p><p>for file in $(ls);do js-beautify $file | anew jsfiles/$file;done</p><p>cd jsfiles</p><p>for file in $(ls);do cat $file | gf s3-buckets | anew ../Secrects/buckets.txt</p><p>}</p><p>This is how i extract S3 Buckets , Secrect keys from JS Files and send them on my Discord Server using notify tools</p><p>cat Secrects/$file.txt | notify -silent</p><p>people Who Dont know about notify can refer this</p><p><a href="https://anubhav-singh.medium.com/notification-system-for-your-bug-bounty-automation-7b13af1b7372">Notification system for your Bug Bounty Automation</a></p><p>After Finding The buckets you can Check Permissions by AWS CLI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ylNMEBkt8C2_rJaNvw_97w.png" /></figure><p>aws s3 ls s3://target-bucket || aws s3 cp payload.txt s3://target-bucket</p><h3>Django Debug</h3><p>Django Debug=True is use in Development for debug the Errors. if developers forget to turn off or to make it False it will be nightmare to the Company</p><p>By Generating the 504 Internal Server Error . server thorws the All Env Variable at Error Page . So how to Generate this Error</p><p>make PUT requests at /admin api Server will Throw the 504 Page In Response</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*11lzgWSalAytD0XLvHgggw.png" /></figure><p>Thank you for reading this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ea9452af957" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Domain takeover of shopify based apps]]></title>
            <link>https://magarajay538.medium.com/domain-takeover-of-shopify-based-apps-29897b99b48a?source=rss-7d9ccad64584------2</link>
            <guid isPermaLink="false">https://medium.com/p/29897b99b48a</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[subdomain-takeover]]></category>
            <category><![CDATA[bugbounting]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Ajay Magar]]></dc:creator>
            <pubDate>Sat, 07 Aug 2021 19:03:26 GMT</pubDate>
            <atom:updated>2021-08-16T11:06:02.175Z</atom:updated>
            <content:encoded><![CDATA[<p>So first of all what is shopify, shopify is a canadian multinational, E-commerce company. Basically it is a cloud service provider that allows you to create an e-commerce website in a super easy way.</p><p>I guess everyone is familiar with Subdomain takeover if not Then read this.</p><p><a href="https://medium.com/@Hacker0x01/a-guide-to-subdomain-takeovers-ddebe0684a58">https://medium.com/@Hacker0x01/a-guide-to-subdomain-takeovers-ddebe0684a58</a></p><p>Lets Start how i exploit this.</p><p>i am not hunting on this target , i found it accidentally. I am searching jeans for me then i remembered my friend suggest me about this target. so i google about that. So first 2 3 result are target.com. before they have domain with another_name.in.</p><p>I found another_name.in 5 or 6 th result of google search.When i opened korra.in. i saw this type of error page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*N0QhJCo9jhLPK7KrHSmRfg.jpeg" /></figure><p>So next step is who is the owner of this domain.I opened whois.com and search korra.in</p><p>Whosis.com is a application where we can find about domain names. Like they are available or not , who is the owner , expiry date , ip addresses etc etc</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*cbO73Q-H0eLGy2yvohDg9Q.jpeg" /></figure><p>This company is parent org of target.com. So till here we know that who own this assets.</p><p>Now this is the time to attack….!</p><p>I created a trial version account on shopify by the name of target.com which is not required you can give any name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rjdPs0Lzg-uf_SyQ" /></figure><p>After that navigate to the sales channel — Domains and in third party domains add the vulnerable domain name. And connect it to the attacker apps</p><p>After that attacker app look like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*rjm1W0N95vaQEIWxvggWAA.jpeg" /></figure><p>As you can see i takeover the domain name. I can host anything on this domain</p><p>Impact — attacker can run scams with this domain. And company have to face legal issues.</p><p>Company doesn’t have the bug bounty program but they rewarded me with small xxxx INR</p><p>After bounty</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*Lj8R_bS-DVNrW7st" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29897b99b48a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[S3 leaking the data Call the plumber]]></title>
            <link>https://magarajay538.medium.com/s3-leaking-the-data-call-the-plumber-8f2447919ba7?source=rss-7d9ccad64584------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f2447919ba7</guid>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Ajay Magar]]></dc:creator>
            <pubDate>Wed, 23 Jun 2021 18:55:48 GMT</pubDate>
            <atom:updated>2021-06-23T19:10:54.414Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Infosec people,</p><p>So What is S3 Bucket</p><p>S3 bucket is a service offered by Aws for storing data like images ,video.</p><p>And also we can host a static web page on s3 bucket. Meaning of s3 is simple Storage service .</p><p>Nowadays, every company on cloud uses S3 to store the data of a customer. If developers make mistakes in <strong>IAM</strong> Roles; it will be a disaster.</p><p><strong>IAM roles in Aws</strong> — Identity and Access Management. By setting iam roles we can</p><p>Set permissions and decide who can add, delete, access the data.</p><p>Se developers need to set it very carefully.</p><p>Let See from Hacker perspective, how one can find buckets and exploit it.</p><p>So, I am hunting on private program on hackerone, (I can’t disclose the name as per policy). We can call it taryet.com. First I enumerated all subdomains using Subfinder ,which is made in Go by Project Discovery Team; they are legends.</p><p><a href="https://github.com/projectdiscovery">ProjectDiscovery</a></p><p>Okay back to the Topic, after enumerating Subdoamins I checked every subdomain</p><p>Manually, clicked every button and link on page.</p><p>There is Extension on firefox S3 Bucket List</p><p><a href="https://addons.mozilla.org/en-US/firefox/addon/s3-bucket-list/">S3 Bucket List - Get this Extension for 🦊 Firefox (en-US)</a></p><p>Every request which you made from your bowser this extension capture and</p><p>Check if it going to S3 or not if S3 service deleted it saves the name in list</p><p>And you can check permission itself there But i prefer the manual method</p><p>And you should be Dont be lazy.</p><p>After many clicks and checking function i got a bucket name.</p><p>I fired my terminal. Before going to the exploit part you have to configure the</p><p>Aws keys in computer</p><p>Sudo apt-get install aws-cli or pip3 install awscli</p><p>$ aws configure</p><p>AWS Access Key ID: MYACCESSKEY</p><p>AWS Secret Access Key: MYSECRETKEY</p><p>Default region name [us-west-2]: us-west-2</p><p>Default output format [None]: json</p><p>You will get this keys on aws console iam settings</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/0*PNky47LpK8qNozZn" /></figure><p>Exploitation Part</p><p>So Bucket name looks like this</p><p><a href="https://bucket_name.s3.amozoneaws.com/">https://bucket_name.s3.amozoneaws.com</a></p><p>First check the if we can upload and delete any file in bucket</p><p>Start your terminal and try this command</p><p>aws s3 cp payload.txt s3://bucket_name #adding malicious file</p><p>aws s3 mv data.txt s3://bucket_name # delete the file from bucket</p><p>In my case both both are secured</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/0*6WuNnC97hwrwb-eL" /></figure><p>After that i check every folder on bucket by listing</p><p>Aws s3 ls s3://bucket_name/folder_name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/0*LuJqkRFoC1xJWqye" /></figure><p>My reaction was oh my God so much data!</p><p>I download every sensitive data it contains. For POC</p><p>Aws s3 cp s3://bucker_name/folder/file.txt ./ # to download a file</p><p>Yay , i was awarded 100$</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*77cYlRVQZQCjBxPL" /></figure><p>I know its to low for high severity bug what can you except from Indian Company.</p><p>Happy Hacking,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/285/0*Suz_rrEh8ntTg8dB" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f2447919ba7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Story of my first Bug on #jiomart parameter Temparing]]></title>
            <link>https://magarajay538.medium.com/story-of-my-first-bug-on-jiomart-parameter-temparing-9cf38c014389?source=rss-7d9ccad64584------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cf38c014389</guid>
            <category><![CDATA[jio-mart]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bugs]]></category>
            <dc:creator><![CDATA[Ajay Magar]]></dc:creator>
            <pubDate>Sun, 02 Aug 2020 08:41:51 GMT</pubDate>
            <atom:updated>2020-08-07T14:54:08.962Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Everyone,</p><p>So whats is Parameter Temparing</p><blockquote><em>The Web Parameter Tampering attack is based on the manipulation of parameters exchanged between client and server in order to modify application data, such as user credentials and permissions, price and quantity of products, etc. Usually, this information is stored in cookies, hidden form fields, or URL<br>Query Strings, and is used to increase application functionality and control.</em></blockquote><p>Let us kick of this process with #Jiomart First</p><p>I first try to tamper with the value of a product which will later on be added to the cart. Then I fire the Burpsuite and start looking for the parameter values. I realise that I can’t get any parameter values because of the security measures taken by Jio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lEYjB2_WkqKeibYAuPqCUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*OHWMgwZI0j_mX2rE8SRmJg.gif" /></figure><p>In the Cart, there is button that says: Place A Order. I captured requests using Burpsuite; but I was still unable to get parameter Value.</p><p>I then moved on to the Make Payment Page. Here I performed the same steps. I tried captured requests using Burpsuite and this time I was successful. I got the value of the parameter because there was no encryption at this point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PZCasi7F4iXDdjy2FFbYKg.png" /></figure><p>I then changed the amount Parameter to 10 and then forwarded the requests. It displayed the information that said the Error Amount was Less than the Cart value. The question that might arise is how? What happened at the backend? The answer to such a seemingly complex question is somewhat simple. At the backend, the cart value was compared with amount that was to be paid, a discrepancy was observed and hence an error was thrown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*WfH24ya-kuZFFlxYk3oCfA.png" /></figure><p>UFF! Now what to do? The answer again; is simple. Change the value of amount to cart value and then forward the requests. After forwarding the requests, I landed on the Payment Page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nR6wjU0NaURA5kidAHotMQ.png" /></figure><p>I started the Payment Process and then began to capture the Requests. At this point, I came across something really interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*PSl3XBjK4oVHB2KxoRSpeg.png" /></figure><p>I changed the Order total value to 10 and then forward the request. After that I logged into my Phone Pay account(an online service) and BOOM the value has been changed to 10. After completing the payment process the order was placed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*6M7V7E8RdXRMiddnv6_waQ.png" /></figure><p>Thanks <a href="https://www.linkedin.com/in/aishwarya-kanchan-34b6841a5/">Aishwarya</a> for Editing.</p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cf38c014389" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>