{"id":19498,"date":"2015-05-05T23:06:26","date_gmt":"2015-05-05T17:36:26","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=19498"},"modified":"2015-07-09T11:14:47","modified_gmt":"2015-07-09T05:44:47","slug":"continuing-with-boto-find-security-group-having-port-22-open-for-all","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/continuing-with-boto-find-security-group-having-port-22-open-for-all\/","title":{"rendered":"Continuing with Boto: Find security group having port 22 open for all"},"content":{"rendered":"<p>Consider a use case where in any <a title=\"AWS Certified Team\" href=\"http:\/\/www.tothenew.com\/devops-automation-consulting\">team members<\/a> have opened port 22 for\u00a0<b style=\"text-align: justify; color: red;\">0.0.0.0\/0<\/b> inside an EC2 security group and forgot, which is a big security concern for the Instances.<\/p>\n<p>So I have written a script using python boto library which scans all the security groups of running \/ stopped instances and sends an email to all stakeholders on daily\/weekly basis if port 22 is open for all. This script uses SNS API calls to send an email if defined rule matches.<\/p>\n<p>This script has few prerequisites<\/p>\n<p><strong>1) Create an SNS topic and configure subscription.<\/strong><\/p>\n<p>Once you create SNS topic, you get an end point that you need to configure in scripts.<\/p>\n<p><strong>2) Configure IAM User \/ Role with required policy. <\/strong><\/p>\n<p>[js]<br \/>\nimport sys<br \/>\nimport boto<br \/>\nfrom boto import ec2<br \/>\nfrom boto import sns<br \/>\nconnection=ec2.connect_to_region(&quot;region-name&quot;)<br \/>\nconnSNS = boto.sns.connect_to_region(&quot;region-name&quot;)<br \/>\nsg=connection.get_all_security_groups()<\/p>\n<p>listOfInstances=&quot;&quot;<br \/>\nmessages=&quot;Following Instances have port 22 open&quot;<\/p>\n<p>def getTag(instanceId):<br \/>\n    reservations=connection.get_all_instances(filters={&#8216;instance_id&#8217;:instanceId})<br \/>\n    for r in reservations:<br \/>\n        for i in r.instances:<br \/>\n            return i.tags[&#8216;Name&#8217;]<\/p>\n<p>try:<br \/>\n    for securityGroup in sg:<br \/>\n        for rule in securityGroup.rules:<br \/>\n            global instanceId;<br \/>\n            if (rule.from_port==&#8217;22&#8217; and rule.to_port == &#8217;22&#8217;) and &#8216;0.0.0.0\/0&#8217; in str(rule.grants):<br \/>\n                for instanceid in securityGroup.instances():<br \/>\n                    instanceId=str(instanceid)<br \/>\n                    listOfInstances += &quot;Instance Name : &quot; + getTag(instanceId.split(&#8216;:&#8217;)[1]) + &quot;\\t State:&quot; + instanceid.state + &quot;\\t SecurityGroup:&quot; +securityGroup.name + &quot;\\n&quot;<br \/>\n                    connSNS.publish(topic=&#8217;SNS-topic-arn-endpoint&#8217;,message = messages + &quot;\\n&quot; + listOfInstances, subject=&#8217;ProjectName : Server List with Port 22 Open&#8217;)<\/p>\n<p>except :<br \/>\n    print &#8216;Some Error occurred : &#8216;<br \/>\n    print sys.exc_info()<br \/>\n    connSNS.publish(topic=&#8217;SNS-topic-arn-endpoint&#8217;,message = sys.exc_info(), subject=&#8217;script ended with error&#8217;)<\/p>\n<p>[\/js]<\/p>\n<p>You can schedule this script as a cron on a daily basis to get the report over the email. You can download these scripts from our github profile <a href=\"https:\/\/github.com\/hiteshBhatia\/aws-boto-scripts\/\">AWS-Boto-Scripts.<\/a><\/p>\n<p>Leave a comment if you have any questions regarding this article.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Consider a use case where in any team members have opened port 22 for\u00a00.0.0.0\/0 inside an EC2 security group and forgot, which is a big security concern for the Instances. So I have written a script using python boto library which scans all the security groups of running \/ stopped instances and sends an email [&hellip;]<\/p>\n","protected":false},"author":100,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":10,"footnotes":""},"categories":[1174],"tags":[248,1694,521,553],"class_list":["post-19498","post","type-post","status-publish","format-standard","hentry","category-aws-2","tag-aws","tag-aws-ec2-monitoring","tag-custom-security","tag-ssh"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Consider a use case where in any team members have opened port 22 for 0.0.0.0\/0 inside an EC2 security group and forgot, which is a big security concern for the Instances. So I have written a script using python boto library which scans all the security groups of running \/ stopped instances and sends an email\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Vikash Jha\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/continuing-with-boto-find-security-group-having-port-22-open-for-all\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Continuing with Boto: Find security group having port 22 open for all | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Consider a use case where in any team members have opened port 22 for 0.0.0.0\/0 inside an EC2 security group and forgot, which is a big security concern for the Instances. So I have written a script using python boto library which scans all the security groups of running \/ stopped instances and sends an email\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/continuing-with-boto-find-security-group-having-port-22-open-for-all\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"article:tag\" content=\"aws\" \/>\n\t\t<meta property=\"article:tag\" content=\"aws ec2 monitoring\" \/>\n\t\t<meta property=\"article:tag\" content=\"custom security\" \/>\n\t\t<meta property=\"article:tag\" content=\"ssh\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2015-05-05T17:36:26+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2015-07-09T05:44:47+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Continuing with Boto: Find security group having port 22 open for all | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Consider a use case where in any team members have opened port 22 for 0.0.0.0\/0 inside an EC2 security group and forgot, which is a big security concern for the Instances. So I have written a script using python boto library which scans all the security groups of running \/ stopped instances and sends an email\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/continuing-with-boto-find-security-group-having-port-22-open-for-all\\\/#article\",\"name\":\"Continuing with Boto: Find security group having port 22 open for all | TO THE NEW Blog\",\"headline\":\"Continuing with Boto: Find security group having port 22 open for all\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vikash-jha\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2015-05-05T23:06:26+05:30\",\"dateModified\":\"2015-07-09T11:14:47+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/continuing-with-boto-find-security-group-having-port-22-open-for-all\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/continuing-with-boto-find-security-group-having-port-22-open-for-all\\\/#webpage\"},\"articleSection\":\"AWS, aws, aws EC2 monitoring, Custom Security, ssh\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/continuing-with-boto-find-security-group-having-port-22-open-for-all\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/aws-2\\\/#listItem\",\"name\":\"AWS\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/aws-2\\\/#listItem\",\"position\":2,\"name\":\"AWS\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/aws-2\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/continuing-with-boto-find-security-group-having-port-22-open-for-all\\\/#listItem\",\"name\":\"Continuing with Boto: Find security group having port 22 open for all\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/continuing-with-boto-find-security-group-having-port-22-open-for-all\\\/#listItem\",\"position\":3,\"name\":\"Continuing with Boto: Find security group having port 22 open for all\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/aws-2\\\/#listItem\",\"name\":\"AWS\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vikash-jha\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vikash-jha\\\/\",\"name\":\"Vikash Jha\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/continuing-with-boto-find-security-group-having-port-22-open-for-all\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa67f119919550cc9af23ac9542eb0ef48d4e69a6ad310fb29f55390d4662b36?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Vikash Jha\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/continuing-with-boto-find-security-group-having-port-22-open-for-all\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/continuing-with-boto-find-security-group-having-port-22-open-for-all\\\/\",\"name\":\"Continuing with Boto: Find security group having port 22 open for all | TO THE NEW Blog\",\"description\":\"Consider a use case where in any team members have opened port 22 for 0.0.0.0\\\/0 inside an EC2 security group and forgot, which is a big security concern for the Instances. So I have written a script using python boto library which scans all the security groups of running \\\/ stopped instances and sends an email\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/continuing-with-boto-find-security-group-having-port-22-open-for-all\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vikash-jha\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vikash-jha\\\/#author\"},\"datePublished\":\"2015-05-05T23:06:26+05:30\",\"dateModified\":\"2015-07-09T11:14:47+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Continuing with Boto: Find security group having port 22 open for all | TO THE NEW Blog","description":"Consider a use case where in any team members have opened port 22 for 0.0.0.0\/0 inside an EC2 security group and forgot, which is a big security concern for the Instances. So I have written a script using python boto library which scans all the security groups of running \/ stopped instances and sends an email","canonical_url":"https:\/\/www.tothenew.com\/blog\/continuing-with-boto-find-security-group-having-port-22-open-for-all\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/continuing-with-boto-find-security-group-having-port-22-open-for-all\/#article","name":"Continuing with Boto: Find security group having port 22 open for all | TO THE NEW Blog","headline":"Continuing with Boto: Find security group having port 22 open for all","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/vikash-jha\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"datePublished":"2015-05-05T23:06:26+05:30","dateModified":"2015-07-09T11:14:47+05:30","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/continuing-with-boto-find-security-group-having-port-22-open-for-all\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/continuing-with-boto-find-security-group-having-port-22-open-for-all\/#webpage"},"articleSection":"AWS, aws, aws EC2 monitoring, Custom Security, ssh"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/continuing-with-boto-find-security-group-having-port-22-open-for-all\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.tothenew.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/aws-2\/#listItem","name":"AWS"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/aws-2\/#listItem","position":2,"name":"AWS","item":"https:\/\/www.tothenew.com\/blog\/category\/aws-2\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/continuing-with-boto-find-security-group-having-port-22-open-for-all\/#listItem","name":"Continuing with Boto: Find security group having port 22 open for all"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/continuing-with-boto-find-security-group-having-port-22-open-for-all\/#listItem","position":3,"name":"Continuing with Boto: Find security group having port 22 open for all","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/aws-2\/#listItem","name":"AWS"}}]},{"@type":"Organization","@id":"https:\/\/www.tothenew.com\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/www.tothenew.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.tothenew.com\/blog\/author\/vikash-jha\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/vikash-jha\/","name":"Vikash Jha","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/continuing-with-boto-find-security-group-having-port-22-open-for-all\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa67f119919550cc9af23ac9542eb0ef48d4e69a6ad310fb29f55390d4662b36?s=96&d=mm&r=g","width":96,"height":96,"caption":"Vikash Jha"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/continuing-with-boto-find-security-group-having-port-22-open-for-all\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/continuing-with-boto-find-security-group-having-port-22-open-for-all\/","name":"Continuing with Boto: Find security group having port 22 open for all | TO THE NEW Blog","description":"Consider a use case where in any team members have opened port 22 for 0.0.0.0\/0 inside an EC2 security group and forgot, which is a big security concern for the Instances. So I have written a script using python boto library which scans all the security groups of running \/ stopped instances and sends an email","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/continuing-with-boto-find-security-group-having-port-22-open-for-all\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/vikash-jha\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/vikash-jha\/#author"},"datePublished":"2015-05-05T23:06:26+05:30","dateModified":"2015-07-09T11:14:47+05:30"},{"@type":"WebSite","@id":"https:\/\/www.tothenew.com\/blog\/#website","url":"https:\/\/www.tothenew.com\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"article","og:title":"Continuing with Boto: Find security group having port 22 open for all | TO THE NEW Blog","og:description":"Consider a use case where in any team members have opened port 22 for 0.0.0.0\/0 inside an EC2 security group and forgot, which is a big security concern for the Instances. So I have written a script using python boto library which scans all the security groups of running \/ stopped instances and sends an email","og:url":"https:\/\/www.tothenew.com\/blog\/continuing-with-boto-find-security-group-having-port-22-open-for-all\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","article:tag":{"0":"aws","2":"aws ec2 monitoring","3":"custom security","4":"ssh"},"article:published_time":"2015-05-05T17:36:26+00:00","article:modified_time":"2015-07-09T05:44:47+00:00","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Continuing with Boto: Find security group having port 22 open for all | TO THE NEW Blog","twitter:description":"Consider a use case where in any team members have opened port 22 for 0.0.0.0\/0 inside an EC2 security group and forgot, which is a big security concern for the Instances. So I have written a script using python boto library which scans all the security groups of running \/ stopped instances and sends an email","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"19498","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"article","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 12:24:05","updated":"2024-02-29 08:34:23","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\/category\/aws-2\/\" title=\"AWS\">AWS<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tContinuing with Boto: Find security group having port 22 open for all\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"AWS","link":"https:\/\/www.tothenew.com\/blog\/category\/aws-2\/"},{"label":"Continuing with Boto: Find security group having port 22 open for all","link":"https:\/\/www.tothenew.com\/blog\/continuing-with-boto-find-security-group-having-port-22-open-for-all\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/19498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/100"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=19498"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/19498\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=19498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=19498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=19498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}