avatarDr Mehmet Yildiz

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

5791

Abstract

7156">I covered user-specific secrets here:</p><div id="744d" class="link-block"> <a href="https://readmedium.com/create-a-per-user-secret-in-secrets-manager-part-1-bb97b66e2a2d"> <div> <div> <h2>User-Specific Secrets on AWS: IAM Policies</h2> <div><h3>ACM.82 IAM Policies to allow users to describe their own secrets</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*PcniDpBJq2db0jbdryc_Nw.png)"></div> </div> </div> </a> </div><h2 id="aada">Create the user-specific Secret to store the automation credentials</h2><p id="a515">Next I create <b>SandboxDevAutomationSecret</b> in Secrets Manager, encrypted with my <b>Sandbox KMS key</b>.</p><figure id="e15e"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*DQonCyF8UzPnZZoiGOKD9w.png"><figcaption></figcaption></figure><figure id="f7b3"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*zITxEtD__wFDwpPrBpqv4w.png"><figcaption></figcaption></figure><h2 id="2e63">Create a user-specific EC2 instance role for the SandboxDev user</h2><p id="3417">Next I create an EC2 instance role that the developer is allowed to pass to EC2 instances named <b>SandboxDevEC2Role</b>.</p><figure id="44ef"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*__fohZeTWjwdYrS__B4imQ.png"><figcaption></figcaption></figure><p id="eee9">The role will have a prefix with the username:</p><figure id="7afa"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*7dKW5KiQMivtKqjgzA_1Gw.png"><figcaption></figcaption></figure><p id="a338">This role is granted access to:</p><ul><li>Read the<b> SandboxDevSecret.</b></li><li>Pull containers from the <b>sandbox Elastic Container Repository.</b></li><li>Use the <b>sandbox KMS key </b>to access decrypt the secret and the container in the repository</li></ul><h2 id="df90">Create the Automation user</h2><p id="b752">Create the <b>SandboxDevAutomation</b> user. Do not give this user console access.</p><figure id="ddeb"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*QWVvQMA9aDCtmiVxSR61iw.png"><figcaption></figcaption></figure><p id="c19e">Remember that I already have a role (<b>CloneGitHubtoCodeCommitRole</b>) used by my batch job from prior posts. Create a policy that allows the SandboxDevAutomation user to use STS to assume that role.</p><p id="559f">The <b>SandboxDev</b> user needs permission to change the <b>credentials</b> <b>and</b> MFA device of the <b>SandboxDevAutomation</b> user.</p><h2 id="0f53">Edit the batch job role trust policy to allow the SandboxDevAutomation role to assume it</h2><p id="7f1d">We need to modify the trust policy to allow the <b>SandboxDevAutomation</b> <b>user</b> to assume the <b>CloneGitHubtoCodeCommitRole</b> role with MFA.</p><figure id="6ad1"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*xAHGslW3SSbv6c5NO8mhzg.png"><figcaption></figcaption></figure><p id="7ad0">Edit the trust policy:</p><figure id="cfaf"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*Vna71G_F2e-8Vdtw4yBwFw.png"><figcaption></figcaption></figure><p id="6a5a">Change the user to SandboxDev:</p><figure id="f788"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*vpSqEqjFa_qg59v_dnPCzQ.png"><figcaption></figcaption></figure><h2 id="49b3">Add permissions to KMS Key Resource Policy</h2><p id="8cf1">Next I need to allow the <b>SandboxDev</b> user to encrypt and decrypt and the <b>SanboxDevEC2Role</b> to decrypt with the <b>sandbox KMS Key.</b> I edit my automation to add those two roles to the encrypt and decrypt users.</p><figure id="380f"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*UkzCt10p0iqCR4OpMs6uhQ.png"><figcaption></figcaption></figure><h2 id="d015">Login as SandboxDev</h2><p id="725d">Log into the AWS Console with the SandboxDev user. If you’ve been following along, you have an account with a prefix specific to your organization and -Dev at the end if you used my deployment scripts.</p><figure id="13d5"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*5L-3C9ORVXOWv6KRdCkBLg.png"><figcaption></figcaption></figure><h2 id="d260">Add MFA devices</h2><p id="5cca">Add a Hardware MFA device to the SandboxDev User.</p><figure id="21f0"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*8s8rTuyWOsLAQUEqfwTtOQ.png"><figcaption></figcaption></figure><p id="c0e6">Add a Virtual MFA device to the SandboxDevAutomation User.</p><p id="5cec">I explain why I do not use a Yubikey to generate MFA codes here:</p><div id="1308" class="link-block"> <a href="https://readmedium.com/the-yubikey-cli-and-aws-mfa-50e6be0698a7"> <div> <div> <h2>The Yubikey CLI and AWS MFA</h2> <div><h3>ACM.11 Considering the attack surface and MFA choices for our Security Batch Jobs</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*SFAKbcK__GlbJbJJJVXK9w.png)"></div> </div> </div> </a> </div><figure id="5893"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*iFl4DTQNuplt-SGONHpNYw.png"><figcaption></figcaption></figure><h2 id="d7df">Create automation credentials</h2><p id="b9e4">Create an <b>Access key</b> for the <b>SandboxDevAutomation</b> user.</p><figure id="7f1e"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*KoVfxp-aJvzBiacPyFeMlA.png"><figcaption></figcap

Options

tion></figure><p id="217e">I have explained before that I disagree with the verbiage on this page. The CLI in the browser has a much larger attack surface and it depends how you are using the keys.</p><figure id="0423"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*_CCe4xu8AcNLloUHgvF5Aw.png"><figcaption></figcaption></figure><h2 id="8caa">Store the credentials in the SandboxDevAutomationSecret</h2><p id="24aa">Head to the Secrets Manager dashboard.</p><p id="432d">Click on the SandboxDevAutomationSecret.</p><figure id="6893"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*cz9jnYSnBsGXf9Y8VZjGPQ.png"><figcaption></figcaption></figure><p id="f616">Store the secret key id and secret access key.</p><figure id="4b95"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*-G9eR929nKSsGWrsOuzucg.png"><figcaption></figcaption></figure><h2 id="5496">Test Launching an EC2 Instance with the SandboxDev role</h2><p id="8907">Head over the EC2 dashboard and test launching an EC2 Instance. Recall that the Instance name needs to match what we specified in the policy above.</p><figure id="a1c7"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*FqCLLp7V854JJZa88TIdvA.png"><figcaption></figcaption></figure><p id="2bc8">If you need to decode any error messages I explained how to do that here:</p><div id="bb13" class="link-block"> <a href="https://readmedium.com/decoding-aws-error-messages-db0e0cbecf0d"> <div> <div> <h2>Decoding AWS Error Messages</h2> <div><h3>Free Content on Jobs in Cybersecurity | Sign up for the Email List</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*4oxP4LXk8l8c3mpRvO7ejg.png)"></div> </div> </div> </a> </div><p id="bd85">Choose the existing networking created for EC2 instances from prior posts.</p><div id="a149" class="link-block"> <a href="https://readmedium.com/automating-cybersecurity-metrics-890dfabb6198"> <div> <div> <h2>Automating Cybersecurity Metrics (ACM)</h2> <div><h3>A series of blog posts on cybersecurity metrics and security automation</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*L9lEIsaWt6xm2Op2ww-G5w.png)"></div> </div> </div> </a> </div><p id="2937">Choose the role we created under Advanced details.</p><figure id="8870"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*oHJior3Ueea6woDB1zqqKQ.png"><figcaption></figcaption></figure><p id="a822">One note that took me a bit to resolve. The message when your user does not have permission to pass the IAM role to the EC2 instance is a bit ambiguous.</p><div id="a0fb" class="link-block"> <a href="https://readmedium.com/ambiguous-error-message-when-a-user-doesnt-have-permission-to-pass-a-specific-iam-role-to-an-ec2-b005f338b6df"> <div> <div> <h2>Ambiguous Error Message When a User Doesn’t Have Permission to Pass a Specific IAM Role to an EC2…</h2> <div><h3>This error message needs to be more specific and doesn’t show up in CloudTrail for the User Name</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*4oxP4LXk8l8c3mpRvO7ejg.png)"></div> </div> </div> </a> </div><p id="51b2">Getting the resources setup took some time because I realized I had to revise my approach. I didn’t automate any of this but I will in the future. For now I just want to make sure it works. I can also figure out what permissions each policy requires.</p><p id="1fb5">I will test the initialization script in the next post.</p><p id="2c31">Follow for updates.</p><p id="4a3a">Teri Radichel | <i>© <a href="https://2ndsightlab.com/?source=post_page---------------------------">2nd Sight Lab</a> 2023</i></p><div id="8b5f"><pre><span class="hljs-section">About Teri Radichel:

⭐️ Author: Cybersecurity Books
⭐️ Presentations: Presentations by Teri Radichel
⭐️ Recognition: SANS Award, AWS Security Hero, IANS Faculty
⭐️ Certifications: SANS ~ GSE 240
⭐️ Education: BA Business, Master of Software Engineering, Master of Infosec
⭐️ Company: Penetration Tests, Assessments, Phone Consulting ~ 2nd Sight Lab</pre></div><div id="caae"><pre><span class="hljs-section">Need Help With Cybersecurity, Cloud, or Application Security?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span>
🔒 Request a penetration test or security assessment
🔒 Schedule a consulting call
🔒 Cybersecurity Speaker for Presentation</pre></div><div id="530b"><pre>Follow <span class="hljs-keyword">for</span> more stories like <span class="hljs-keyword">this</span>:

❤️ Sign Up my Medium Email List ❤️ Twitter: <span class="hljs-meta">@teriradichel</span> ❤️ LinkedIn: https:<span class="hljs-comment">//www.linkedin.com/in/teriradichel</span> ❤️ Mastodon: <span class="hljs-meta">@teriradichel</span><span class="hljs-meta">@infosec</span>.exchange ❤️ Facebook: 2nd Sight Lab ❤️ YouTube: @2ndsightlab</pre></div><figure id="eecf"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/0*H9Ew1KCl-29nZiPR.jpeg"><figcaption></figcaption></figure></article></body>

Cognitive and Mental Health

Here’s How to Crush the Negative Effects of Amygdala Hijacks.

Practical tips for taming the amygdala, strengthening the neocortex, and converting unpleasant emotions to pleasant ones

Photo by Charles Parker on Pexels

I provide an overview of the amygdala, a vital component of the brain that plays a significant role in our mental health and overall well-being.

As the disproportionate activation of the amygdala can have adverse effects on your emotions, I introduce practical strategies for managing amygdala hijacks and improving overall mental functioning.

I summarize the critical points in straightforward language without delving into technical or scientific details.

Your Emotional Brain and the Alert System

The amygdala, a complex physiological structure in the emotional brain, plays a crucial role in survival management. However, excessive activity of the amygdala can result in negative emotions such as anxiety, fear, and anger.

As the amygdala can trigger unpleasant emotions in response to real and perceived dangers, it is essential to understand its function to cope effectively with these emotions.

It is crucial to be aware of amygdala hijacks, sudden and intense emotional reactions often out of proportion to the situation. These reactions can be overwhelming and interfere with your ability to think clearly and make rational decisions.

Both your thoughts and biochemistry can trigger emotions in the mind and body. You may not even be aware of your emerging feelings as they seem out of nowhere.

The amygdala, located in the emotional part of the brain, known as the limbic system, perceives and reacts to emotions much faster than the neocortex (thinking brain).

As a result, you might find yourself caught off guard and experiencing an amygdala hijack, leading to feelings of misery and powerlessness.

Addressing the symptoms and coping mechanisms for amygdala hijacks can improve your emotional well-being and lead to a more enjoyable life.

To effectively manage emotional triggers and aggravators, it is essential to first recognize them and then plan to address them. These triggers and aggravators can quickly intensify and lead to amygdala hijacks.

Awareness of uncomfortable situations and the factors that trigger and exacerbate these emotions is a good starting point.

Some common emotions experienced during an amygdala hijack include intense anxiety, fear, anger, and guilt.

These emotions are triggered by the amygdala and processed by the limbic system for survival and are an inherent part of the emotional brain.

The amygdala’s primary function is to ensure survival, so understanding its role is essential in coping with anxiety, fear, and other unpleasant emotions. Fear and anxiety, while similar, are distinct emotions and conditions.

While dangerous situations typically trigger fear, anxiety can occur without real threats and may not be accompanied by fear. As a result, you may experience anxiety without feeling fear.

The amygdala is not under conscious control and is not part of the cognitive system. This means you cannot directly control the amygdala with your thoughts, logic, and reasoning.

As a result, it can be contradictory and challenging to manage, leaving you vulnerable to being controlled by your emotions rather than being in control of them.

Practical Tips to Tame the Amygdala and Strengthen Neocortex

One common question I receive from readers is whether it is possible to do anything about the amygdala using human capabilities.

The short answer is that you cannot directly affect the amygdala with your thoughts. However, you can influence the amygdala through conscious thinking and interventions from your body. This concept is known as taming the amygdala with the neocortex and the body.

The amygdala can become overactive and lead to uncomfortable emotions triggered by both real and perceived dangers, even when there is no actual threat present.

To effectively cope with these emotions, you need to understand the nature of the amygdala and develop strategies to tame it through conscious thinking and managing emotional triggers.

The amygdala can detect threats before the thinking brain can see or analyze them, and negative thoughts can also activate the amygdala in the absence of real threats.

The amygdala has a metaphorical script of scenarios coded in it that represent potential dangers to survival.

This symbolic script is updated based on life experiences. Each person may have a different script in their amygdala due to prior learning and other life experiences.

The amygdala has solid and fast neural connections to the nervous system, endocrine system (hormones), and organs such as the heart, liver, and kidneys. It acts much faster than the neocortex and can even shut it down, making it unavailable to function.

The neocortex, a specific part of the cerebral cortex (thinking brain), is the most recently evolved thinking part of the human cortex and does not have a direct connection or control over the amygdala.

However, you can still influence the amygdala through conscious thinking and by developing strategies to tame it.

One way to do this is by recognizing the symptoms of amygdala hijacks and learning to manage emotional triggers, such as being aware of uncomfortable situations and understanding the factors that trigger negative emotions.

You can also use the capabilities of the neocortex, such as thinking, rationalizing, and planning, to effectively manage your emotions.

One proven technique for taming the amygdala is gradually exposing it to perceived risks as a way of training the amygdala through emotional experiences.

For example, if you are anxious in crowds, you can expose yourself to small gatherings over time. With repeated exposures, you may find that your fear and anxiety begin to dissipate as the amygdala changes the script to indicate that there are no threats to your survival.

Another powerful tool is using the bodily system, such as breathing and exercising, to reduce the effects of anxiety and fear.

Exercise, while a physical activity, can also have a mental impact. When you move your body, you can reduce the intensity of anxiety and fear symptoms.

In addition to burning excess stress hormones, exercise can also increase BDNF and release endorphins, which are natural chemicals that can improve mood and reduce stress and anxiety.

In addition to these physical techniques, it is necessary to pay attention to your thoughts and emotions and to practice mindfulness, such as meditation, visualization, and working in a flow state.

Mindfulness practices help you focus on the present moment and accept thoughts and feelings without judgment.

By being aware of your thoughts and emotions and regularly practicing mindfulness, you can gain greater control over your emotional responses, tame the amygdala, and empower your cognitive system.

Through my research and experience, I also found that engaging in activities such as fasting, dancing, singing, and playing musical instruments can improve the harmony between the cognitive and emotional brain.

Summary

The amygdala is an essential part of the brain that plays a critical role in emotions and survival management, and it can become overactive and lead to unpleasant feelings.

It is possible to influence the amygdala through conscious thinking and interventions from the body, a concept known as taming the amygdala with the neocortex and the body.

Recognizing the symptoms of amygdala hijacks and learning to manage emotional triggers can help you effectively cope with negative emotions.

Exposing the amygdala to perceived risks and using the bodily system, such as breathing and exercising, can help reduce the effects of anxiety and fear.

Paying attention to thoughts and emotions and practicing mindfulness can help you gain control over your emotional responses and tame the amygdala.

Using techniques such as rationalizing, gradually exposing yourself to perceived threats, exercising, and breathing, you can tame the amygdala and strengthen the neocortex.

When you perform these activities for a long time, they can turn into healthy habits rewiring the brain to effectively deal with amygdala hijacks and unpleasant emotions.

Key Takeaways of the Story

Understand the nature of the amygdala and limbic system.

Recognize the symptoms of amygdala hijacks and learn to manage emotional triggers.

Use the capabilities of the neocortex, such as thinking, rationalizing, and planning, to manage emotions effectively.

Gradually expose the amygdala to perceived risks by training it through emotional experiences.

Use the bodily system, such as breathing and exercising, to reduce the effects of anxiety and fear.

Pay attention to thoughts and emotions by practicing mindfulness.

Balance the harmony of the emotional and cognitive brain with hobbies such as dancing, singing, and playing musical instruments.

Once you tame your amygdala and empower your neocortex, you can stay calm and composed even amidst crises.

This capability portrays the secret behind the behavioral distinctions between those typically calm, composed, and focused versus those prone to aggression and distraction.

Thank you for reading my perspectives. I wish you a healthy and happy life.

If you are a new reader and find this article valuable, you might check my holistic health and well-being stories reflecting my reviews, observations, and decades of sensible experiments.

Sample Health Improvement Articles for New Readers

I write about various hormones and neurotransmitters such as dopamine, serotonin, oxytocin, GABA, acetylcholine, norepinephrine, adrenaline, glutamate, and histamine.

One of my goals as a writer is to raise awareness about the causes and risk factors of prevalent diseases that can lead to suffering and death for a large portion of the population.

To raise awareness about health issues, I have written several articles that present my holistic health findings from research, personal observations, and unique experiences. Below are links to these articles for easy access.

Metabolic Syndrome, Type II Diabetes, Fatty Liver Disease, Heart Disease, Strokes, Obesity, Liver Cancer, Autoimmune Disorders, Homocysteine, Lungs Health, Pancreas Health, Kidneys Health, NCDs, Infectious Diseases, Brain Health, Dementia, Depression, Brain Atrophy, Neonatal Disorders, Skin Health, Dental Health, Bone Health, Leaky Gut, Leaky Brain, Brain Fog, Chronic Inflammation, Insulin Resistance, Elevated Cortisol, Leptin Resistance, Anabolic Resistance, Cholesterol, High Triglycerides, Metabolic Disorders, Gastrointestinal Disorders, Thyroid Disorders, Anemia, cardiac output, and major disorders.

I also wrote about valuable nutrients. Here are the links for easy access:

Lutein/Zeaxanthin, Phosphatidylserine, Boron, Urolithin, taurine, citrulline malate, biotin, lithium orotate, alpha-lipoic acid, n-acetyl-cysteine, acetyl-l-carnitine, CoQ10, PQQ, NADH, TMG, creatine, choline, digestive enzymes, magnesium, zinc, hydrolyzed collagen, nootropics, pure nicotine, activated charcoal, Vitamin B12, Vitamin B1, Vitamin D, Vitamin K2, Omega-3 Fatty Acids, N-Acetyl L-Tyrosine, Cod Liver Oil, and other nutrients to improve metabolism and mental health.

Disclaimer: My posts do not include professional or health advice. I document my reviews, observations, experience, and perspectives only to provide information and create awareness.

I publish my lifestyle, health, and well-being stories on EUPHORIA. My focus is on metabolic, cellular, mitochondrial, and mental health. Here is my collection of Insightful Life Lessons from Personal Stories.

If you enjoy writing and storytelling, you can join Medium, NewsBreak, and Vocal as a creator to find your voice, reach out to a broad audience, and monetize your content.

You may also check my blog posts about my articles and other writers’ articles contributing to my Medium publications. I share them on my website, digitalmehmet.com. Here is my professional bio. You can contact me via weblink.

As a writer, blogger, content developer, and reader, you might join Medium, Vocal Media, NewsBreak, Medium Writing Superstars, Writing Paychecks, WordPress, and Thinkers360 with my referral links. These affiliate links will not cost you extra to join the services.

You might join my six publications on Medium as a writer by sending a request via this link. 22K+ writers contribute to my publications. You might find more information about my professional background.

If you enjoy reading, you may join Medium with my referral link for limitless access to my stories and other writers.

Mental Health
Health
Lifestyle
Self Improvement
Science
Recommended from ReadMedium