avatarKimberly Fosu

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

6344

Abstract

lass="hljs-keyword">Get</span>-EventLog -logname security -InstanceId <span class="hljs-number">4720</span> | <span class="hljs-keyword">Select</span>-<span class="hljs-type">Object</span> *</pre></div><figure id="9247"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*1ogBlqZ-7dNeDpNg7baIUw.png"><figcaption></figcaption></figure><p id="fab0">Our initial assumption was accurate. Now, let’s list the privileges held by the <b><i>‘apt’ </i></b>user. Since we already know this user belongs to the Administrator group, we can confirm this by enumerating the admin group.</p><div id="0989"><pre>net localgroup Administrators</pre></div><figure id="31eb"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*n8AmAAO-wgl9guGrSdE1PQ.png"><figcaption></figcaption></figure><p id="2be9">However, the privileges held by the user <b><i>‘apt’</i></b> remain uncertain. To determine their access level, we will employ the Sysinternals tool called <b><i><a href="https://learn.microsoft.com/en-us/sysinternals/downloads/accesschk">accesschk</a>,’</i></b> which will assist us in identifying the extent of access granted to the ‘apt’ user. Go to the respective folder and this file with the below command attribute.</p><div id="f085"><pre>.\accesschk64<span class="hljs-selector-class">.exe</span> apt -<span class="hljs-selector-tag">a</span> *</pre></div><figure id="9f6f"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*kHHnzdbij_wQaZXIosY8sg.png"><figcaption></figcaption></figure><p id="7afb">Indeed, it’s confirmed that the user ‘apt’ possesses full privileges within the operating system. Our next step is to identify any active sessions associated with this user. To acquire this information, we can leverage system commands, Sysinternals tools, or even examine event logs. For now, we’ll opt for the Sysinternals tool ‘<a href="https://learn.microsoft.com/en-us/sysinternals/downloads/psloggedon">PsLoggedon</a>,’ which will help us determine any active login sessions.</p><figure id="7a36"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*SFoW2OOgM7DZZyVHPuDfSw.png"><figcaption></figcaption></figure><p id="e60d">This observation reveals that the user ‘apt’ has logged into the victim machine through system shares. To determine the origin of this connection, we can utilize the ‘net’ command to gather more information.</p><div id="d661"><pre>net session</pre></div><figure id="9ac1"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*JApyNvTUPHprvRSnyaJE6A.png"><figcaption></figcaption></figure><p id="0b6d">The observation indicates that the attacker’s machine is identified as <b><i>192.168.0.104</i></b>, and the connection to the victim’s machine remains active, suggesting that the attacker is currently on that system.</p><h1 id="0006">Process and Service Information</h1><p id="3547">Now, let’s extract valuable information from processes and services, as critical data is often concealed there. To gather process information, we have two PowerShell cmdlets at our disposal: ‘Get-Process’ and ‘Get-WmiObject Win32_Process.’ I recommend using ‘WmiObject’ because it provides more comprehensive data compared to the first cmdlet. We will retrieve a list of processes running at the time of the investigation.</p><div id="54a8"><pre><span class="hljs-keyword">Get</span>-WmiObject -<span class="hljs-keyword">Class</span> Win32_Process | <span class="hljs-keyword">select</span> ProcessName, ProcessId,CommandLine</pre></div><figure id="ea4e"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*okLiTkQMzF-ji_193xAgCg.png"><figcaption></figcaption></figure><p id="b190">Numerous processes are running, making it challenging to identify anomalies. However, given that user <b><i>VictimA</i></b> has been compromised, we should focus on processes initiated by this user.</p><div id="cca5"><pre>Get-WmiObject -Class Win32_Process | <span class="hljs-built_in">where</span> { <span class="hljs-variable">$_</span>.GetOwner().User -eq <span class="hljs-string">"VictimA"</span> } | <span class="hljs-keyword">select</span> ProcessId, Name, CommandLine</pre></div><figure id="4972"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*sh5NIGAVwx9SSsyg5ED1bg.png"><figcaption></figcaption></figure><p id="66f7">We noticed that some processes initiated by user <b><i>VictimA</i></b> appear suspicious based on their command lines. Let’s investigate the parent-child relationships for these processes using its Process ID.</p><div id="3dd1"><pre><span class="hljs-keyword">Get</span>-WmiObject -<span class="hljs-keyword">Class</span> Win32_Process | <span class="hljs-keyword">where</span> processid -<span class="hljs-keyword">In</span> <span class="hljs-number">7036</span>,<span class="hljs-number">5892</span>,<span class="hljs-number">5776</span>,<span class="hljs-number">9112</span>,<span class="hljs-number">7912</span>,<span class="hljs-number">460</span>,<span class="hljs-number">8864</span> | <span class="hljs-keyword">select</span> ParentProcessId,ProcessId, Name, CommandLine</pre></div><figure id="1b1a"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*5CeYdOtVvcy4bDPKdmxXbA.png"><figcaption></figcaption></figure><p id="ddaa">It has been observed that the <b><i>‘ad.bat’</i></b> file executed a PowerShell command. The purpose of this command was to download a PowerShell script and run it, specifying an IP address and port number as attributes. This suggests that the PowerShell script was designed to establish a reverse connection as part of an attack. The reference image is given from Process Explorer.</p><figure id="aaaa"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*fNdvmFTnbrtYE9MBTCAvdQ.png"><figcaption></figcaption></figure><p id="c8d3">Now that we have collected a significant amount of information about the suspicious processes, let’s shift our focus to the services, where we might find valuable insights. We will gather a list of all actively running services.</p><div id="6cfd"><pre>Get-WmiObject -<span class="hljs-keyword">class</span> <span class="hljs-title class_">Win32_service</span> |<span class="hljs-title">where</span> <span class="hljs-title">State</span> -<span class="hljs-title">eq</span> '<span class="hljs-title">Running</span>'| <span class="hljs

Options

-title">select</span> <span class="hljs-title">name</span>,<span class="hljs-type">processid</span>,<span class="hljs-type">status</span>,<span class="hljs-type">started</span>,<span class="hljs-type">state</span>,<span class="hljs-type">pathname</span></pre></div><figure id="1a9a"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*WVIZinER8JAbBjd-6vzfgg.png"><figcaption></figcaption></figure><p id="7bd7">No suspicious findings so far, but I’d like to take a closer look at the running services associated with the Process IDs we identified during our process investigation.</p><div id="2ff9"><pre>Get-WmiObject -<span class="hljs-keyword">class</span> <span class="hljs-title class_">Win32_service</span> |<span class="hljs-title">where</span> <span class="hljs-title">State</span> -<span class="hljs-title">eq</span> '<span class="hljs-title">Running</span>' |<span class="hljs-title">where</span> <span class="hljs-title">processid</span> -<span class="hljs-title">In</span> 7036,<span class="hljs-type">5892</span>,<span class="hljs-type">5776</span>,<span class="hljs-type">9112</span>,<span class="hljs-type">7912</span>,<span class="hljs-type">460</span>,<span class="hljs-type">8864|</span> <span class="hljs-title">select</span> <span class="hljs-title">name</span>,<span class="hljs-type">processid</span>,<span class="hljs-type">status</span>,<span class="hljs-type">started</span>,<span class="hljs-type">state</span>,<span class="hljs-type">pathname</span></pre></div><figure id="4c35"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*6CV3yOovqZM7JUBwaHnxYA.png"><figcaption></figcaption></figure><p id="49a9">Nothing suspicious was observed!!</p><h1 id="7870">Network Information</h1><p id="f2ac">As we’re aware of the reverse connection, our next step is to confirm its presence or establishment. To achieve this, we will utilize the <b><i>‘netstat</i></b>’ utility. Our first action is to retrieve a list of all connections.</p><figure id="786e"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*Ap9HOX5ljV59a3JvaZHSVQ.png"><figcaption></figcaption></figure><p id="11b0">Now, we’ll inspect the established connections and identify their owners. In our particular instance, we noted a connection on port 4444, and it’s associated with PowerShell, which is indicated by the PID 7912. This confirmation implies that a Command and Control session has been established on <b><i>192.168.0.108</i></b>.</p><figure id="0027"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*z-wRQ1UG_jCLSdxaYQPCdw.png"><figcaption></figcaption></figure><p id="b7dd">We’ll now examine the nature of communication between the compromised machine and the C2C server, which typically functions as a Master-Slave relationship. To inspect this interaction, we’ll employ Wireshark</p><figure id="5026"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*a_g9T6ZW98cMgq_iPdOznA.png"><figcaption></figcaption></figure><h1 id="c47c">Autorun and schedule task information</h1><p id="ab11">As we approached the final phase of our live forensics on the Windows machine, our attention was drawn to the C2C (Command and Control) connection, where the server was attempting to add a .bat file to the registry to establish persistence on the system. Before delving into the registry path, we conducted a preliminary check to see if any applications were located in the startup locations. Unfortunately, we did not discover any malicious applications in these areas.</p><figure id="bf7a"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*1_Ng1FqB8eP4KK8XE_jOxA.png"><figcaption></figcaption></figure><p id="43dd">At this point, our attention is directed towards the startup commands within the registry. We’ve noticed that a registry key has been added, and the associated file is named “sd.bat.”</p><div id="93c4"><pre>gwmi <span class="hljs-title class_">Win32</span>_StartupCommand</pre></div><figure id="2a07"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*6C5wTI9ysapfJD6q5WY_OA.png"><figcaption></figcaption></figure><p id="3a9e">We’ll make an effort to gather more detailed information regarding this specific startup location to gain deeper insights into the activity. This confirms that the activity recorded in network forensics has been successfully executed, and persistence has been maintained.</p><div id="f52f"><pre>gwmi Win32_StartupCommand | <span class="hljs-keyword">where</span> name -eq <span class="hljs-string">"APT"</span> | <span class="hljs-keyword">select</span> *</pre></div><figure id="8544"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*lfQO-8KyGLRyWen8Hg44-g.png"><figcaption></figcaption></figure><p id="bdef">We will now check if any other persistence activity has been observed via scheduled tasks. Unfortunately, no suspicious activity has been found.</p><div id="0fac"><pre><span class="hljs-keyword">Get</span><span class="hljs-operator">-</span>ScheduledTask <span class="hljs-operator">|</span> <span class="hljs-keyword">where</span> state <span class="hljs-operator">-</span>eq <span class="hljs-string">'Ready'</span></pre></div><figure id="cfb5"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*EihxglbQgcwtDh4rC5VPbQ.png"><figcaption></figcaption></figure><h1 id="51e5">Indicator of Attack</h1><p id="f3aa">- New user APT has been created — <b>Initial Access (T1078.003)</b>

  • User APT added to the admin group — <b>Privilege Escalation (T1098)</b>
  • The user ‘APT’ has logged into the victim’s machine using network services from the IP address 192.168.0.104 — <b>Lateral Movement (T1021.002)</b>
  • PowerShell commands were executed from a batch file, with the aim of downloading a PowerShell script and running it, providing an IP address and port number as inputs. This indicates the establishment of a reverse shell. — <b>Execution (T1059)</b>
  • I noticed a batch file added to HKU<user>\SOFTWARE\Microsoft\Windows\CurrentVersion\Run, indicating that this file will be executed upon user VictimA’s login. — <b>Persistence (T1547.001)</b></p><h1 id="afc0">Conclusion</h1><p id="3dda">The process we’ve discussed in this blog is not exhaustive, and there are other artifacts that can also be observed. We’ll aim to cover those in the next blog.</p></article></body>

3 Ways To Attain a Higher Level of Consciousness

You can’t do it if you’re always thinking

Self-awareness is the first step towards higher consciousness. (Photo: chiplanay)

1. Spiritual Awakening

Spiritual awakening is a privilege the universe bestows upon individuals with massive potentials who aren’t living up to it. And the result of the awakening is a shift in consciousness.

Most humans are in a state of being asleep even when wide awake. They are blind to the true nature of existence because they’re unconscious of it. They pay no attention to the things that happen around them because they aren’t aware.

Higher consciousness is an increase in awareness of the physical self and in the meaning of existence, your spiritual nature, and the true nature of all things. It’s the ultimate God-consciousness, the consciousness of the higher self or unity consciousness.

When the universe sees great power and potential in a person who is asleep to it, it wakes him or her up so they can see who they truly are and the vastness of the universe.

The beauty of spiritual awakening is that you don’t become anything or get anywhere. You don't become better than others or reach some state of enlightenment. What happens is that you simply awaken to your true nature and you see the interconnectedness of everything and everyone. You reach unity consciousness where you see everyone as an extended version of yourself.

Waking up and becoming highly aware of everything requires you to let go of your old identity, embrace who you’re growing to become, and be mindful of every little thing.

It requires you to be able to pause and notice what’s going on inside you, what’s going on with others, and what’s going on in the world around you. A purposeful pause at any time of the day can help you become more aware, and awareness is the first step towards higher consciousness.

Being mindful means paying attention to the little things and doing it on purpose in the present moment with no judgement.

Mindfulness creates the space for consciously paying attention to your thoughts and emotions and allows you to notice what you are feeling. It also gives you time to think before you respond or react to other people's feelings.

When you have a spiritual awakening, all of these things will come naturally and therefore you’ll see a shift in your consciousness and after that, nothing is ever the same.

Spiritual awakening isn’t dangerous . It isn’t an evil thing. It’s a privilege the universe bestows upon individuals with massive potentials.

2. Critical Thinking

Critical thinkers have hearts as well as heads and they use them both. It's difficult for a critical thinker to fall prey to the many fallacies of the world.

For you to be able to pick out the facts from the fallacies, you need to think for yourself and start to question everything you're told. This includes the things you read, watch and listen to.

Critical thinkers don’t trust someone else’s words just like that. They trust their own reasoning. They listen to their intuition. Instead of being careless and blindly believing whatever their guru or religion tells them, they weigh it against their own inner wisdom.

This doesn’t mean they disregard everybody and their opinions. No. They give fair-minded consideration to others’ points of view and discern the facts.

While you need to be a critical thinker to achieve a higher consciousness, too much thinking is overthinking and overthinking doesn’t lead you there. You can’t unlock higher levels of consciousness if you’re always thinking.

You overthink when your life is out of balance. It blocks your mind from transcending beyond its own limited boundaries and keeps you trapped in your own mental prison.

Most of the thoughts the mind thinks is nothing but fiction. It’s not real. If you can witness thoughts, you can see which ones are serving you and which ones are holding you back.

You bring yourself back into balance by taking a break from thinking and witnessing your thoughts like you’re outside of it all. You raise your consciousness when you can capture and question rebellious thoughts and teach them to obey you.

When you question your thoughts; when you can look beyond the mind and not at the mind itself, you start the journey to a high level of consciousness.

You can alter your thinking anytime when you meditate or pray, do yoga or other spiritual practice or engage in activities that induce a trance.

As you experience a shift in consciousness, you awaken to the eternal nature of your true being.

Critical thinkers have hearts as well as heads and they use them both.

3. Truth Seeking

Critical thinkers want to know nothing but the truth. They are willing to consider and even accept ideas that undermine their own biased assumptions or self-interest. They follow reason and evidence wherever they lead.

Most people aren’t truth seekers. Most people are approval seekers, others are comfort seekers and some just seek pleasure. They accept other people’s truths as their own without doing any research to make sure it’s true.

If you want to attain a higher level of consciousness, you must be a seeker of the truth. You have to go in search of the truth. It must be the thing you strive for.

Truth-seekers ask questions that are larger than the earth. They dive deep into the core and pull out the answers.

They won't take anything as truth until they’ve found it to be true. They don't accept what the masses take as truth just to feel a sense of belonging.

They care about the fact and not only what makes them feel good.

To reach a higher level of consciousness, you must seek the truth no matter what, even if it makes you a bit uncomfortable. You must also be prepared to change your false beliefs without hesitation.

If it makes you feel good and it’s not the truth, it does you no good.

Also — Listening More

You can raise your consciousness by listening more than you speak. You will learn a lot more by listening to people and watching them than you ever will by talking and telling them what you know.

You must be mindful of the contents you listen to. Music, people, words, movies, etc. All of it affects you in ways you don’t think about.

Focus on content that uplifts you. Empowering and uplifting music can raise your vibrations to higher levels, thereby raising your consciousness. Low vibrational music that only talks about low vibrational things immediately lowers your vibration and you won’t understand what happened to you.

Listening to those who uplift you, listening to words and sayings that feed you wisdom, listening to chants and other spiritual music will instantly raise your level of consciousness and make you feel great within yourself.

All of these things when combined with mastering the self by mastering your thoughts and your emotions and when you're compassionate to everyone you cross paths with; when you try to understand every situation instead of just reacting, you’d be already operating from a much higher consciousness.

When you forgive so you can forget; when you love your neighbor as much as you love yourself; when you’re kind, humble and truthful in all your dealings, and when you’re grateful for all that the universe has blessed you with, you ascend in consciousness to new levels.

Note: This article is only meant to provide spiritual guidance and light-hearted content.

Still have questions?

If you need to talk to someone about certain things, book a coaching session and we’ll talk about all of it. | Join my email list for random insights | I love and appreciate all my patrons and those who buy me water. ❤

Spirtuality
Self Improvement
Self
Life
Life Lessons
Recommended from ReadMedium