<?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 Gwladysgodem on Medium]]></title>
        <description><![CDATA[Stories by Gwladysgodem on Medium]]></description>
        <link>https://medium.com/@gwladysgodem?source=rss-ebf81671f1c6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*JJs-yjx0efB0jwpw</url>
            <title>Stories by Gwladysgodem on Medium</title>
            <link>https://medium.com/@gwladysgodem?source=rss-ebf81671f1c6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:37:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gwladysgodem/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[Dans La Peau D’une Architecte De Sécurité D’entreprise.]]></title>
            <link>https://medium.com/@gwladysgodem/dans-la-peau-dune-architecte-de-s%C3%A9curit%C3%A9-d-entreprise-05afe78c84e8?source=rss-ebf81671f1c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/05afe78c84e8</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security-architecture]]></category>
            <category><![CDATA[risk-evaluation]]></category>
            <category><![CDATA[sabsa]]></category>
            <category><![CDATA[risk-management]]></category>
            <dc:creator><![CDATA[Gwladysgodem]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 17:33:00 GMT</pubDate>
            <atom:updated>2026-11-16T17:33:00.388Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*dqAyPAxZFjCH3gX82wxEaw.png" /></figure><p><strong>Je me découvre une passion pour l’architecture de sécurité.</strong></p><p>En architecture de sécurité, on distingue deux rôles. L’architecture de solution de sécurité travaille projet par projet : c’est l’exécution tactique. L’architecture de sécurité d’entreprise, elle, porte la vision stratégique. Elle part de ce que l’organisation veut accomplir, analyse les risques qui menacent ses objectifs et finit dans une salle de réunion, devant un comité de direction qui doit trancher : investit-on pour réduire ce risque, oui ou non ?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eGWz39VTGI0BVGKhcRI86Q.png" /></figure><p>C’est cette deuxième facette qui me passionne.</p><p>Trop souvent, ce sont la technologie et l’urgence qui dictent les décisions de sécurité. Pourtant, un projet de sécurité devrait démontrer sa valeur comme n’importe quel autre projet d’affaires.</p><p>Convaincre un CODIR, ce n’est pas lui faire peur. C’est lui présenter les enjeux, les risques, ce qu’ils coûtent sans mesure de protection et ce qu’ils coûtent avec. Puis le laisser décider, en toute connaissance de cause.</p><p>Pour comprendre ce rôle, il suffit de penser à quelque chose que tout le monde a déjà fait : choisir une police d’assurance auto.</p><p><strong>L’architecte est un courtier, pas un vendeur</strong></p><p>Quand vous assurez votre voiture, le courtier ne décide pas à votre place. Il vous présente des options : responsabilité civile seulement, couverture complète, franchise de 500 $ ou de 1 000 $. Pour chacune, il vous dit ce qu’elle couvre, ce qu’elle coûte et ce qui reste à votre charge en cas d’accident.</p><p>Ensuite, vous choisissez. Vous pouvez prendre le minimum et assumer le reste. C’est votre droit. Mais vous signez en sachant ce que vous acceptez.</p><p>C’est exactement la posture de l’architecte de sécurité devant un CODIR. Il ne vend pas un pare-feu. Il présente des scénarios de risque, des options pour les traiter, leur coût et le risque qui demeure. La direction décide. Si elle choisit d’accepter un risque, c’est légitime, à condition que ce choix soit éclairé et assumé.</p><p>L’architecte ne prend pas la décision. Il s’assure que personne ne puisse dire qu’il ne savait pas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yATmUqIiAhmykUwBr554LQ.png" /></figure><p><strong>Les chiffres derrière votre prime</strong></p><p>Pour faire ce travail, il faut parler chiffres. Les sigles font peur : AV, EF, SLE, ARO, ALE. Pourtant, vous les connaissez déjà. C’est le calcul que fait votre assureur.</p><p>Votre voiture vaut 25 000 $. C’est l’actif (AV).<br> Un accident typique en abîme 40 %. C’est le facteur d’exposition (EF).<br> Un accident coûte donc 10 000 $. C’est la perte par incident (SLE = AV × EF).<br> Un conducteur comme vous a un accident tous les dix ans. C’est la fréquence annuelle (ARO = 0,1).<br> Votre risque « coûte » donc 1 000 $ par année. C’est la perte annuelle attendue (ALE = SLE × ARO), et c’est la base de votre prime.</p><p>L’assureur ne prédit pas si vous aurez un accident cette année. Il raisonne en moyenne. Et quand vous installez des freins ABS ou un antivol, votre prime baisse. Il ne vous demande pas de croire que l’ABS est une bonne technologie. Il mesure ce qu’il change à la fréquence et à la gravité des accidents.</p><p>En sécurité, la logique est la même : on évalue l’efficacité d’un contrôle par ce qu’il réduit, pas par ce qu’il promet.</p><p><strong>Le même calcul, appliqué à un rançongiciel</strong></p><p>Prenons une organisation dont les sauvegardes sont accessibles depuis le réseau de production. Un incident de rançongiciel lui coûterait environ 600 000 $ : arrêt des opérations, restauration, honoraires, notifications. Elle s’expose à un incident de ce type à peu près une fois tous les trois ans.</p><p>Sans protection : 600 000 $ × 0,3 = 180 000 $ de perte attendue par année.</p><p>L’architecture proposée comprend des sauvegardes immuables isolées, de la segmentation et une authentification renforcée sur les accès d’administration. Elle n’élimine pas le risque. Elle le réduit :</p><ul><li>On passe à un incident tous les dix ans, parce que l’attaquant atteint beaucoup plus difficilement ce qui compte.</li><li>On restaure en quelques jours au lieu de plusieurs semaines, et le coût d’un incident tombe à 200 000 $.</li></ul><p>Avec protection : 200 000 $ × 0,1 = 20 000 $ par année.</p><p>Risque évité : 160 000 $ par année.</p><p>Ce que la solution coûte vraiment : 120 000 $ d’investissement amorti sur trois ans (40 000 $ par an), plus 25 000 $ par an en licences et en exploitation, soit 65 000 $ par année.</p><p>Gain net : 95 000 $ par année. Chaque dollar investi en protège environ 2,50 $.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0WxvTi0mx5HASeteSk2H3A.png" /></figure><p>Voilà la « prime ». Voilà la « couverture ». Et voilà la « franchise » : les 20 000 $ de risque qui demeurent. La direction a maintenant tout ce qu’il faut pour signer, ou pour refuser en connaissance de cause.</p><p><strong>Ce qui fait pencher la balance</strong></p><p>Le calcul ouvre la discussion. Il ne la termine pas.</p><ol><li><strong>Des fourchettes, pas de fausse précision.</strong> Votre assureur ne connaît pas le coût exact de votre prochain accident. « Entre 300 000 $ et 900 000 $ » ouvre la discussion, alors que « 600 000 $ » invite à contester le chiffre. Les méthodes comme FAIR et la simulation Monte-Carlo servent à ça.</li><li><strong>Ne pas s’assurer au-delà de ce qu’on protège.</strong> Personne ne paie 20 000 $ par année pour assurer une voiture de 5 000 $. Le modèle de Gordon et Loeb suggère de ne pas dépenser plus d’environ 37 % de la perte qu’on protège, soit environ 66 600 $ ici. Le projet reste sous ce plafond.</li><li><strong>Le coût total, pas seulement le prix d’achat.</strong> Une alarme sans abonnement de surveillance ne protège pas grand-chose. En sécurité aussi, l’exploitation oubliée dans le budget fait perdre la confiance de la direction.</li><li><strong>Le transfert de risque.</strong> Les assureurs cyber ajustent la prime et la franchise selon les contrôles en place, comme pour l’auto. Une bonne architecture réduit le risque, et elle peut aussi réduire une ligne du budget.</li><li><strong>Ce qui ne se chiffre pas facilement :</strong> conformité, confiance des clients, continuité des services. Il faut le nommer clairement, pas le cacher dans un chiffre gonflé.</li><li><strong>La franchise, c’est le risque résiduel.</strong> Une bonne présentation dit ce qui reste après l’investissement et qui en est responsable.</li></ol><p><strong>Conclusion</strong></p><p>Une architecture de sécurité ne se justifie pas par sa qualité technique. Elle se justifie par l’écart entre deux pertes attendues, avant et après, comparé à ce qu’elle coûte réellement.</p><p>Comme un bon courtier, l’architecte de sécurité d’entreprise ne vend pas de la peur. Il met les options sur la table, avec leur prix et leurs limites. La signature, elle, appartient à la direction.</p><p>Et vous, devant votre direction, êtes-vous plutôt vendeur ou courtier ?</p><p>#Cybersécurité #ArchitectureDeSécurité #GestionDesRisques #SABSA #FAIR #GouvernanceTI #CODIR</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05afe78c84e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Segmentation Réseau avec VLANs et Fortigate]]></title>
            <link>https://medium.com/@gwladysgodem/segmentation-r%C3%A9seau-avec-vlans-et-fortigate-c33b90fe3ce7?source=rss-ebf81671f1c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c33b90fe3ce7</guid>
            <category><![CDATA[defense-in-depth]]></category>
            <category><![CDATA[vlan-routing]]></category>
            <category><![CDATA[segmentation]]></category>
            <category><![CDATA[vlan]]></category>
            <category><![CDATA[fortitude]]></category>
            <dc:creator><![CDATA[Gwladysgodem]]></dc:creator>
            <pubDate>Fri, 12 Jun 2026 14:58:46 GMT</pubDate>
            <atom:updated>2026-06-12T15:23:56.214Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rNZNq3xBdiUIupILkoGpwg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*JX4vYUKFSdbtJK4M9yLszg.png" /></figure><p>Ce lab a pour objectif de mettre en place une segmentation réseau complète dans un environnement virtuel GNS3 et VMware. Concrètement, on part d’une situation où toutes les machines partagent le même réseau plat (VLAN 1 par défaut) et on aboutit à une architecture segmentée en trois VLANs distincts dont les communications sont contrôlées par un pare-feu FortiGate central.</p><p>Ce lab couvre l’intégralité du chemin technique : de la théorie de la segmentation jusqu’aux tests de validation en passant par chaque étape de configuration. À l’issue de ce lab, les compétences suivantes sont maîtrisées :</p><p>– Comprendre et expliquer le rôle de la segmentation réseau dans une stratégie de défense en profondeur.</p><p>– Configurer un commutateur virtuel GNS3 avec des ports en mode access et trunk (802.1Q).</p><p>– Créer et configurer des sous-interfaces VLAN sur FortiGate pour assurer le routage inter-segments.</p><p>– Rédiger des politiques de pare-feu permettant un accès contrôlé à Internet depuis chaque segment.</p><p>Ce lab est directement applicable en entreprise. Les concepts mis en pratique ici, zones de sécurité, filtrage inter-segment, NAT, contrôle de flux, se retrouvent dans tout environnement réseau professionnel, qu’il soit on-premise ou hybride cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PBSFIL5ZdekmjVhDeQ6Xwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*gn95ndSGdEq6R2MWa71edg.png" /></figure><p>La segmentation réseau est le découpage d’un réseau physique unique en plusieurs sous-réseaux logiques indépendants, appelés segments. L’objectif est de créer des zones d’isolation : les machines d’un segment ne peuvent pas communiquer directement avec celles d’un autre segment sans passer par un équipement intermédiaire de routage ou de filtrage.</p><p>Dans la pratique, la segmentation s’appuie sur les <strong>VLANs (Virtual Local Area Networks)</strong>. Un VLAN est un regroupement logique de ports réseau sur un commutateur. Deux machines branchées sur le même switch physique mais affectées à des VLANs différents sont aussi isolées que si elles étaient sur deux équipements entièrement distincts.</p><p>La segmentation opère à la <strong>couche 2 du modèle OSI</strong> (liaison de données). C’est le commutateur qui porte cette logique : chaque port est affecté à un VLAN, et le switch ne laisse jamais passer une trame d’un VLAN vers un autre. Pour traverser les frontières de segment, un équipement de couche 3 est obligatoire.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*86eDSuyNiMoFQik6msYT0g.png" /></figure><p>La segmentation est l’un des piliers du modèle de défense en profondeur (Defense in Depth). Au lieu de compter sur une seule ligne de défense périmétrique, on multiplie les obstacles en supposant qu’une menace pourra franchir la première barrière. La segmentation s’assure que même si un attaquant pénètre dans le réseau utilisateurs, il sera bloqué avant d’atteindre les serveurs ou l’administration.</p><h3>Contenir la propagation des menaces</h3><p>C’est la raison principale. Dans un réseau plat, un ransomware ou un vers réseau peut se propager latéralement vers toutes les machines sans rencontrer d’obstacle. Avec la segmentation, si un poste utilisateur est compromis dans le VLAN 20, la menace est confinée à ce segment. Elle ne peut pas atteindre les serveurs du VLAN 30 ou les postes d’administration du VLAN 10 sans traverser le pare-feu qui peut détecter et bloquer le mouvement latéral.</p><h3>Appliquer le principe du moindre privilège</h3><p>Chaque machine ne doit avoir accès qu’aux ressources strictement nécessaires à sa fonction. Un poste utilisateur standard n’a pas besoin de se connecter aux interfaces d’administration des serveurs ou aux outils de gestion réseau. La segmentation, combinée aux règles de pare-feu, permet d’appliquer ce principe au niveau réseau : seuls les flux explicitement autorisés sont permis, tout le reste est refusé par défaut.</p><h3>Réduire la surface d’attaque</h3><p>Dans un réseau plat, un attaquant qui a pénétré sur un poste utilisateur peut scanner toute l’infrastructure, voir tous les serveurs, tenter des connexions sur tous les ports. La segmentation réduit considérablement ce champ de vision : une machine du VLAN 20 ne voit que ce que le pare-feu lui autorise à voir. La cartographie du réseau par un attaquant devient beaucoup plus difficile et partielle.</p><h3>Limiter le domaine de broadcast</h3><p>Dans un réseau unique, chaque message broadcast (ARP, DHCP discover, NetBIOS) atteint toutes les machines. Sur un réseau de 500 postes, ce trafic consomme de la bande passante et alourdit le traitement de chaque machine. Avec les VLANs, les broadcasts sont confinés à leur segment. Un broadcast dans le VLAN 20 ne traverse jamais vers le VLAN 30.</p><h3>Faciliter la conformité et l’audit</h3><p>Les référentiels de sécurité comme PCI-DSS, ISO 27001 ou SOC 2 imposent l’isolation des systèmes sensibles. Stocker des données de carte bancaire sur un segment isolé, accessible uniquement par les applications autorisées, est une exigence PCI-DSS fondamentale. La segmentation crée des périmètres de conformité clairement définis et auditables.</p><h3>Simplifier la gestion et le dépannage</h3><p>Des segments clairement nommés et délimités facilitent l’identification des problèmes réseau. Un incident dans le VLAN Serveurs peut être analysé sans bruit des postes utilisateurs. Les politiques de QoS, les captures de paquets et les logs de pare-feu sont plus lisibles et exploitables quand le trafic est organisé par zones fonctionnelles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*ut8Qhi3OimHbQf4akyanyA.png" /></figure><p>Un commutateur de couche 2 peut créer des VLANs distincts et isoler les segments au niveau de la couche 2 du modèle OSI. Cependant, il ne réalise pas le routage inter-VLAN et ne permet pas, à lui seul, de contrôler ou de filtrer les communications entre ces segments. Dès que l’on souhaite permettre une communication contrôlée entre plusieurs VLANs ou fournir un accès à Internet, un équipement de couche 3 (routeur, pare-feu ou commutateur multicouche) devient nécessaire. Un routeur simple ou un pare-feu. Un routeur fera passer le trafic entre les segments, mais sans aucune inspection ni contrôle de ce qui circule. Dans un lab cybersécurité, l’objectif n’est pas juste de faire communiquer uniquement les VLANs, mais aussi de contrôler les communications.</p><p><strong>FortiGate, un pare-feu de nouvelle génération (NGFW</strong>) joue simultanément trois rôles:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*dTo9b6MDD9Ott_m9CTu0QA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*ppjjUQnaETWulMttReMP4w.png" /></figure><h3>5.1 Vue d’ensemble</h3><p>Le lab est construit dans GNS3 avec des machines virtuelles hébergées sur VMware Workstation. L’architecture repose sur trois composants principaux : un commutateur virtuel GNS3, un pare-feu FortiGate, et les machines des différents segments.</p><h3>5.2 Inventaire des composants</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*-Q7arU9zyEUnD-YW-ABTcw.png" /></figure><h3>5.3 Situation initiale : toutes les machines dans le VLAN 1</h3><p>Au départ, avant toute configuration, toutes les machines se trouvent dans le VLAN 1 (le VLAN par défaut de tout commutateur). Dans cette situation:</p><p>– Toutes les machines partagent le même domaine de broadcast et le même sous-réseau logique.</p><p>– Le commutateur laisse passer les trames entre tous les ports sans distinction.</p><p>– Les machines se pingent entre elles directement, sans passer par aucun équipement intermédiaire.</p><p>– L’accès à Internet fonctionne car toutes les machines ont une route vers la passerelle par défaut, qui leur est commune.</p><p>Ce réseau plat est simple, mais dangeureux : une machine compromise a une visibilité totale sur toutes les autres. Un attaquant qui prend pied sur le poste Windows 10 peut immédiatement scanner et atteindre les serveurs, les postes admin, et toute l’infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*6YJIzoIzHO6M2fA-5GHHVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PxoKETEBzlipO1pF5HBaqw.png" /></figure><h3>5.4 Après la segmentation : pourquoi la connectivité disparaît</h3><p>Dès que les ports du commutateur sont affectés à leurs VLANs respectifs (VLAN 10, 20, 30), chaque machine se retrouve dans sa propre bulle logique:</p><p>– <strong>Le commutateur cloisonne les VLANs :</strong> Par conception, un commutateur 802.1Q ne laisse jamais passer une trame d’un VLAN vers un autre. Windows 11 (VLAN 10) et Windows 10 (VLAN 20) sont sur le même switch physique, mais le switch les traite comme s’ils étaient sur deux équipements entièrement séparés.</p><p>– <strong>Les sous-réseaux sont devenus distincts :</strong> Chaque VLAN a maintenant son propre sous-réseau (192.168.2.0/24, 192.168.3.0/24, 192.168.4.0/24). Pour communiquer entre sous-réseaux différents, il faut un routeur (qui n’est pas encore configuré à ce stade).</p><p>– <strong>Il n’y a plus de passerelle joignable :</strong> Les machines ont une passerelle configurée (ex. 192.168.2.1 pour VLAN 10), mais cette adresse appartient à une sous-interface FortiGate qui n’existe pas encore. Le ping vers la passerelle échoue.</p><p>– <strong>L’accès Internet est coupé :</strong> Sans passerelle joignable, aucun paquet ne peut sortir du segment vers Internet.</p><h3>5.5 L’élément qui résout le problème : FortiGate</h3><p>FortiGate est connecté au port 1 du switch via une liaison trunk dot1q. Cela signifie qu’il reçoit les trames de tous les VLANs sur un seul câble, chaque trame portant une étiquette indiquant son VLAN d’origine.</p><p>Pour que la connectivité soit rétablie de façon contrôlée trois configurations doivent être effectuées sur FortiGate :</p><p>– <strong>Créer les sous-interfaces VLAN :</strong> FortiGate crée une interface logique pour chaque VLAN (VLAN10-Admin, VLAN20-Users, VLAN30-Servers) et leur affecte l’IP de passerelle du segment. Dès lors, les machines peuvent pinger leur passerelle.</p><p>– <strong>Vérifier la route par défaut :</strong> FortiGate doit savoir comment atteindre Internet. Une route 0.0.0.0/0 pointant vers le Cloud NAT de GNS3 doit être présente.</p><p>– <strong>Créer les règles de pare-feu avec NAT :</strong> Sans règle explicite, FortiGate bloque tout. On crée une règle par VLAN autorisant l’accès à Internet, avec NAT activé pour masquer les IPs privées.</p><p>FortiGate devient ainsi le seul point de routage et de contrôle entre les segments et vers Internet. Tout trafic inter-zone passe obligatoirement par lui et est soumis à ses politiques.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*-00QiZww11JLiAGxcssGuA.png" /></figure><h3>Étape 1 — Configuration des VLAN</h3><p>Chaque VLAN reçoit un sous-réseau /24 distinct. La passerelle de chaque segment est l’adresse .1 du sous-réseau, hébergée sur la sous-interface FortiGate correspondante.</p><p><strong>Il est recommandé d’adopter les conventions de nommage</strong> VLAN 10x=Admin, 20x=Utilisateurs, 30x=Servers dès la conception. Une nomenclature cohérente rend l’infrastructure lisible par n’importe quel technicien, facilite la documentation, évite les erreurs de configuration et permet d’étendre l’architecture sans ambiguïté. C’est une bonne pratique industrielle que l’on adopte dès le début.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*Bq7hN34wN3xDrmJ_j6asUA.png" /></figure><h3>— Comprendre les ports Access et Trunk</h3><p>Dans notre lab, le port 1 du switch est configuré en Trunk dot1q vers FortiGate. Tous les autres ports (2 à 5) sont en mode Access, chacun affecté à un seul VLAN. Les machines Windows, Ubuntu et le serveur AD ne savent pas qu’elles sont dans un VLAN , elles se comportent comme sur un réseau ordinaire.</p><p>Un port Trunk transporte les trames de tous les VLANs, mais chaque trame porte son étiquette. FortiGate sait donc, à la réception, de quel VLAN vient chaque paquet et peut appliquer la politique correspondante.</p><h3>— Configuration des VLANs dans le commutateur GNS3</h3><p>La configuration du commutateur dans GNS3 se fait comme ci-dessous.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bjeHFTs9yaxqiCKw_P9dqA.png" /></figure><p>Après cette configuration, les machines perdent la connectivité entre VLANs et vers Internet. C’est normal et attendu, comme expliqué précédemment. La prochaine étape est de configurer les machines avec les bonnes IPs, puis FortiGate pour rétablir la connectivité de façon contrôlée.</p><h3>Étape 2 — Configuration des postes</h3><p>Les adresse ci-dessous seront configurées sur les machines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*kzJtst56mlfEkTOwTYiFVw.png" /></figure><h3>Étape 3 — Créer les sous-interfaces VLAN dans FortiGate</h3><p>Sans sous-interfaces VLAN sur FortiGate, les machines n’ont pas de passerelle joignable et tout trafic inter-segment ou vers Internet est impossible. C’est l’étape qui transforme FortiGate de simple pare-feu en routeur inter-VLAN. Chaque sous-interface crée un point d’entrée dans FortiGate pour un segment donné.</p><p>Navigation FortiGate : Network → Interfaces → Create New → Type : VLAN</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*4UsH8-dSEJLLnfEJHw9KMw.png" /></figure><p>Après cette configuration, chaque machine peut pinger sa passerelle. Mais le trafic inter-VLAN et l’accès Internet restent bloqués — il manque encore la route par défaut et les règles de pare-feu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y-i9vBQUzSxocuUKGbPQSA.png" /></figure><h3>Étape 4 — Vérifier la route par défaut dans FortiGate</h3><p>FortiGate peut router entre les VLANs internes, mais pour acheminer le trafic vers Internet il doit savoir vers quelle direction envoyer les paquets à destination d’IPs publiques. C’est le rôle de la route par défaut (0.0.0.0/0) : elle indique « pour tout ce que tu ne connais pas, envoie vers cette passerelle ». Sans elle, les paquets destinés à Internet sont abandonnés.</p><p>Navigation FortiGate : Network → Static Routes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*LRwoalXM0avPympJ0n7D_A.png" /></figure><h3>Étape 5 — Créer les règles de pare-feu (accès Internet)</h3><p>FortiGate fonctionne en mode deny-by-default : tout ce qui n’est pas explicitement autorisé est refusé. Même si les sous-interfaces VLAN existent et que la route par défaut est en place, sans règle de pare-feu les paquets vers Internet sont bloqués. Cette étape crée les autorisations nécessaires, VLAN par VLAN, avec NAT pour masquer les IPs privées.</p><p>Navigation FortiGate: Policy &amp; Objects → Firewall Policy → Create New</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*-dfJlnVLmme0jEfQFL6dTA.png" /></figure><p>Le NAT est activé sur chaque règle. Sans lui, les paquets quittent FortiGate avec une IP source privée (192.168.x.x). Internet ne sait pas où renvoyer les réponses. FortiGate substitue l’IP source par son IP WAN publique avant d’envoyer le paquet, et réachemine les réponses vers la bonne machine interne.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*jvqrBGO6aJqt3yIWDffmlg.png" /></figure><p>Cette architecture reproduit un modèle fréquemment rencontré dans les PME, les grandes entreprises et les environnements gouvernementaux. La segmentation réseau constitue l’une des mesures les plus efficaces pour réduire la surface d’attaque et limiter les mouvements latéraux. L’utilisation d’un pare-feu de nouvelle génération comme FortiGate permet non seulement d’assurer le routage inter-VLAN mais également d’appliquer une politique de sécurité centralisée conforme aux principes de défense en profondeur et de moindre privilège.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c33b90fe3ce7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Déploiement et Exploitation d’un SIEM avec Wazuh]]></title>
            <link>https://medium.com/@gwladysgodem/d%C3%A9ploiement-et-exploitation-dun-siem-avec-wazuh-b7d4665ed6dd?source=rss-ebf81671f1c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7d4665ed6dd</guid>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[gns3]]></category>
            <category><![CDATA[vmware]]></category>
            <category><![CDATA[wazuh]]></category>
            <category><![CDATA[fortigate]]></category>
            <dc:creator><![CDATA[Gwladysgodem]]></dc:creator>
            <pubDate>Mon, 25 May 2026 22:39:35 GMT</pubDate>
            <atom:updated>2026-05-25T22:39:35.269Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*pdFtP4x1IqM-nV7jYiGpCw.png" /></figure><h3>Introduction</h3><p>Ce laboratoire pratique est un guide étape par étape dans la mise en place d’un environnement de cybersécurité complet et fonctionnel, entièrement base sur des outils libres et gratuits. Il répond à une question fondamentale que se pose tout professionnel de la sécurité : comment surveiller efficacement une infrastructure réseau et détecter les menaces en temps réel.</p><p>L’environnement de labo est construit autour de GNS3 pour la simulation réseau et VMware pour la virtualisation des systèmes. Le pare-feu FortiGate assure la segmentation et le filtrage du trafic. Les Endpoints Windows (postes de travail et serveur Active Directory) et Linux (Ubuntu Server) représentent une infrastructure d’entreprise typique. Wazuh, la plateforme SIEM open source, constitue le coeur du dispositif de surveillance.</p><h4>Infrastructure du laboratoire</h4><p>Tous les équipements fonctionnent dans un réseau unique 192.168.1.0/24 avec le FortiGate comme passerelle centrale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*CCUfXUQ8W1EI5XONoUQAyA.png" /></figure><h3>Partie 1 — Déploiement du SIEM avec Wazuh</h3><h3>1.1 Qu’est-ce qu’un SIEM ?</h3><p>Un SIEM, pour <strong>Security Information and Event Management</strong>, est une plateforme centralisée qui collecte, agrège et analyse les logs et évènements de sécurité provenant de tous les équipements d’une infrastructure. Son rôle est de donner à l’équipe de sécurité une visibilité complète et en temps réel sur ce qui se passe dans le réseau.</p><p>Sans SIEM, chaque équipement génère ses propres logs de son côté et personne ne les consulte vraiment. Avec un SIEM, tout remonte au même endroit, les évènements sont mis en relation les uns avec les autres, et une alerte est générée dès qu’un comportement suspect est détecté. Par exemple, plusieurs échecs de connexion suivis d’un succès peuvent indiquer une attaque brute force réussie, ce pattern est invisible si on regarde les logs d’une seule machine.</p><p>Un SIEM accomplit six fonctions essentielles dans un SOC :</p><ul><li>Collecte les logs de tous les équipements du réseau de façon centralisée</li><li>Détecte les comportements anormaux et les menaces en temps réel</li><li>Corrèle les évènements entre plusieurs machines pour identifier des attaques complexes</li><li>Génère des alertes classées par niveau de criticité (faible, moyen, élevé, critique)</li><li>Produit des rapports de conformité selon les standards PCI-DSS, HIPAA et ISO 27001</li><li>Permet la réponse aux incidents avec des actions automatiques (blocage d’IP, isolation d’un poste)</li></ul><h3>1.2 Pourquoi Wazuh plutôt que Splunk ?</h3><p>Splunk est sans doute la solution SIEM la plus connue et la plus utilisée en entreprise, mais dans le contexte de ce laboratoire nous allons utiliser Wazuh car complètement gratuit, sans aucune limite d’ingestion, et adapté pour des environnements de test.</p><p>Il inclut nativement des fonctionnalités qui nécessiteraient des modules supplémentaires payants avec Splunk : détection d’intrusion sur les Endpoint (HIDS), surveillance de l’intégrité des fichiers, détection de vulnérabilités, évaluation de la configuration selon les benchmarks CIS, et réponse active automatique. Il s’intègre également très bien avec FortiGate via Syslog et avec les agents Windows et Linux.</p><h3>1.3 Installation de Wazuh sur Ubuntu Server 24.04</h3><h4>Étape 1 — Préparer le système</h4><p>Avant toute installation, mettre à jour les paquets du système et installer les dépendances nécessaires. Cette étape garantit que tous les outils requis par Wazuh sont disponibles.</p><pre>sudo apt update &amp;&amp; sudo apt upgrade -y<br>sudo apt install curl unzip wget apt-transport-https lsb-release gnupg -y</pre><h4>Étape 2 — Configurer le hostname</h4><p>Le hostname est le nom par lequel Wazuh identifiera ce serveur dans le dashboard. Le définir proprement évite des confusions lors de la gestion de plusieurs serveurs.</p><pre>sudo hostnamectl set-hostname wazuh-server<br>sudo nano /etc/hosts</pre><p>Ajouter la ligne suivante dans /etc/hosts : <strong>192.168.1.6 wazuh-server</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*3uWFJnTSMNfB5vydDi9gFw.png" /></figure><h4>Étape 3 — Vérifier la connectivité</h4><p>Wazuh a besoin d’un accès internet pour télécharger ses composants. Vérifier que le serveur peut joindre internet avant de continuer.</p><h4>Étape 4 — Télécharger les fichiers d’installation</h4><p>Wazuh fournit un script d’installation automatise et un fichier de configuration. Les deux sont nécessaires, ne pas omettre le config.yml.</p><pre>curl -sO https://packages.wazuh.com/4.11/wazuh-install.sh<br>curl -sO https://packages.wazuh.com/4.11/config.yml<br>chmod +x wazuh-install.sh</pre><h4>Étape 5 — Éditer le fichier config.yml</h4><p>Ce fichier indique au script d’installation l’adresse IP de chaque composant du stack Wazuh. Dans notre cas, les trois composants (indexer, server, dashboard) sont sur la même machine.</p><pre>nano config.yml</pre><p>Remplacer tout le contenu par</p><pre>nodes:<br>  indexer:<br>    - name: node-1<br>      ip: &quot;192.168.1.6&quot;<br>  server:<br>    - name: wazuh-1<br>      ip: &quot;192.168.1.6&quot;<br>  dashboard:<br>    - name: dashboard<br>      ip: &quot;192.168.1.6&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*DKYFafH3MNZzaSh7vp9ajA.png" /></figure><h4>Étape 6 — Générer les certificats TLS</h4><p>Wazuh chiffre toutes ses communications internes avec TLS. Cette étape génère les certificats nécessaires pour sécuriser les échanges entre les composants.</p><pre>bash wazuh-install.sh --generate-config-files</pre><h4>Étape 7 — Installation de Wazuh</h4><p>Cette commande déploie simultanément le Manager (moteur d’analyse), l’Indexer (base de données OpenSearch) et le Dashboard (interface web).</p><pre>sudo bash wazuh-install.sh --all-in-one --ignore-check</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*ckNc7SD9Gojr9AaRzRafTw.png" /></figure><p>A la fin de l’installation, le terminal affiche quelque chose comme :</p><h4>Étape 8 — Vérifier les services</h4><p>Après l’installation, vérifier que les trois services sont actifs. Si l’un d’eux est arrête, l’interface web sera inaccessible ou incomplète.</p><pre>sudo systemctl status wazuh-manager<br>sudo systemctl status wazuh-indexer<br>sudo systemctl status wazuh-dashboard</pre><h4>Étape 9 — Vérifier le pare-feu Ubuntu (UFW)</h4><p>UFW est le pare-feu intégré d’Ubuntu. Dans notre labo, il est inactif par defaut donc tous les ports sont accessibles automatiquement. Si UFW était actif, il faudrait ouvrir les ports nécessaires à Wazuh.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*HIPaM5QAIiqJ4IGxeif-hg.png" /></figure><pre>sudo ufw status</pre><h4>Étape 10 — Accéder au Dashboard Wazuh</h4><p>Depuis n’importe quelle machine du réseau, ouvrir un navigateur et aller à l’adresse suivante: <strong>https://192.168.1.6</strong></p><p>Les identifiants seront ceux obtenus à l’étape précédente.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*cORzKjwgFHEboWFRX3RLcw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*HWiX3fis82ImR7xTCMp-CQ.png" /></figure><h3>1.4 Déploiement des agents Wazuh sur les Endpoint Windows</h3><p>Un agent Wazuh est un programme installé sur chaque machine à surveiller. Il collecte les évènements locaux (connexions, modifications de fichiers, activité réseau) et les envoie au Wazuh Manager pour analyse. Sans agent, la machine est invisible pour le SIEM.</p><h4>Installation sur Windows Server 2019 (192.168.1.3)</h4><p>Ouvrir PowerShell en tant qu’administrateur sur le Windows Server 2019 et exécuter les commandes suivantes en une seule ligne :</p><pre>Invoke-WebRequest -Uri &quot;https://packages.wazuh.com/4.x/windows/wazuh-agent-4.11.0-1.msi&quot; -OutFile &quot;wazuh-agent.msi&quot;<br>msiexec.exe /i wazuh-agent.msi /q WAZUH_MANAGER=&quot;192.168.1.6&quot; WAZUH_AGENT_NAME=&quot;WIN-SERVER-2019&quot; WAZUH_REGISTRATION_SERVER=&quot;192.168.1.6&quot;<br><br>#démarrage du service<br>NET START WazuhSvc<br>#vérifie que l&#39;état du service<br>Get-Service WazuhSvc</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*LEqE36heOoDH8aH1UE-mqQ.png" /></figure><p>La même procédure sera effectué sur les autres Endpoint avec leur adresse IP respective.</p><h4>Vérification dans le Dashboard wazuh</h4><ul><li>Aller dans Menu -&gt; Agents Management -&gt; Summary</li><li>Les trois machines doivent apparaitre avec le statut Active (point vert)</li><li>Si une machine affiche Disconnected, vérifier que le service WazuhSvc est bien démarré.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*V7RKWhK4p5qAlKaYSlC_Yg.png" /></figure><h3>1.5 Intégration du FortiGate dans Wazuh</h3><p>Le FortiGate ne peut pas recevoir un agent Wazuh comme les machines Windows. Il envoie ses logs via le protocole Syslog, un standard réseau permettant à tout équipement d’envoyer ses évènements vers un serveur centralise. La configuration se fait en deux temps : Ubuntu doit d’abord être configuré pour recevoir ces logs, puis Wazuh doit être configure pour les lire et les analyser.</p><h4>Étape 15 — Configurer la réception Syslog sur Ubuntu</h4><p>Par défaut, rsyslog (le service de gestion des logs d’Ubuntu) fonctionne uniquement en mode local. Il faut l’activer en mode réseau pour qu’il puisse recevoir les logs provenant du FortiGate sur le port UDP 514.</p><p>Sur Ubuntu Server 192.168.1.6</p><pre>sudo apt install rsyslog -y<br>sudo nano /etc/rsyslog.conf</pre><p>Dans le fichier, chercher la section ‘provides UDP syslog reception’ et décommenter les deux lignes suivantes (retirer le # devant chaque ligne) :</p><pre>module(load=&quot;imudp&quot;)<br>input(type=&quot;imudp&quot; port=&quot;514&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*7kGQ0GtOCaF6axsPqIOR_w.png" /></figure><pre>sudo systemctl restart rsyslog<br>sudo tail -f /var/log/syslog</pre><h4>Étape 16 — Configurer le FortiGate pour envoyer ses logs</h4><p>Sur la CLI FortiGate (console GNS3 ou SSH vers 192.168.1.1), exécuter les commandes suivantes:</p><pre>config log syslogd setting<br>    set status enable<br>    set server &quot;192.168.1.6&quot;<br>    set port 514<br>    set facility local7<br>    set format default<br>end<br><br>#vérifier l&#39;etat du service<br>show log syslogd setting</pre><h4>Étape 17 — Configurer Wazuh pour analyser les logs FortiGate</h4><p>rsyslog reçoit bien les logs du FortiGate et les écrit dans /var/log/syslog. Mais Wazuh ne sait pas encore qu’il doit surveiller ce fichier. Il faut ajouter deux blocs de configuration dans le fichier ossec.conf.</p><pre>sudo nano /var/ossec/etc/ossec.conf</pre><p><strong>Bloc 1 — Ecoute directe sur le port 514 (FortiGate envoie ses logs directement a Wazuh) :</strong></p><pre>&lt;remote&gt;<br>  &lt;connection&gt;syslog&lt;/connection&gt;<br>  &lt;port&gt;514&lt;/port&gt;<br>  &lt;protocol&gt;udp&lt;/protocol&gt;<br>  &lt;allowed-ips&gt;192.168.1.1&lt;/allowed-ips&gt;<br>&lt;/remote&gt;</pre><p><strong>Bloc 2 — Surveillance du fichier syslog ou rsyslog écrit les logs reçus :</strong></p><pre>&lt;localfile&gt;<br>  &lt;log_format&gt;syslog&lt;/log_format&gt;<br>  &lt;location&gt;/var/log/syslog&lt;/location&gt;<br>&lt;/localfile&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*v5GnRd4rAgvVVA2GqmICeg.png" /></figure><h3>1.6 Tests et vérification dans le Dashboard</h3><h4>Test 1 — Connexion SSH avec échecs depuis Windows 10</h4><p>Ce test simule un comportement suspect : un utilisateur tente de se connecter en SSH au FortiGate avec de mauvais identifiants. Ce type d’évènement est caractéristique d’une tentative de reconnaissance ou d’une attaque brute force.</p><p>Pour visualiser la trace sur Ubuntu en temps réel :</p><pre>sudo tail -f /var/log/syslog | grep &quot;192.168.1.1&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*tZIovvLSTyilP1RPS8TK3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*ZeumVNs1xPpi6zIm8cBJqw.png" /></figure><h4>Test 2 — Arrêter une machine et observer dans Wazuh</h4><p>Arrêter proprement le Windows 11 ou le Windows Server 2019 depuis le menu Démarrer. Dans le Dashboard Wazuh, l’agent correspondant doit passer de Active (vert) a Disconnected (rouge) dans les 3 à 5 minutes.</p><p>Ce test démontre la capacite du SIEM a détecter la disparition d’un Endpoint — ce qui peut indiquer une panne, un arrêt non planifié ou une action malveillante.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*-1z5EwcUIykzhWENHdZDcA.png" /></figure><h3>Conclusion</h3><p>A l’issue de ce laboratoire, nous avons déployé un environnement de sécurité complet et fonctionnel sans aucun cout de licence. Wazuh surveille en temps réel les quatre machines de l’infrastructure, les logs du FortiGate sont centralises et analyses, et les alertes sont classifiées selon le framework MITRE ATT&amp;CK.</p><p>Ce type d’environnement est directement représentatif de ce que l’on trouve dans les SOC de petites et moyennes entreprises. Les compétences acquises tout au long de ce lab (déploiement d’un SIEM, intégration d’agents, corrélation de logs, analyse d’alertes,…) sont des compétences utiles dans un job de SOC analyste.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7d4665ed6dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TP — Déploiement d’une architecture de supervision et de sécurisation réseau]]></title>
            <link>https://medium.com/@gwladysgodem/tp-d%C3%A9ploiement-dune-architecture-de-supervision-et-de-s%C3%A9curisation-r%C3%A9seau-b96e4e9944c1?source=rss-ebf81671f1c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b96e4e9944c1</guid>
            <category><![CDATA[surveillance]]></category>
            <category><![CDATA[zabbix]]></category>
            <category><![CDATA[ubuntu-server]]></category>
            <category><![CDATA[fortigate]]></category>
            <category><![CDATA[pare-feu]]></category>
            <dc:creator><![CDATA[Gwladysgodem]]></dc:creator>
            <pubDate>Mon, 18 May 2026 13:41:21 GMT</pubDate>
            <atom:updated>2026-05-18T13:41:21.483Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Zabbix 7.0 LTS • FortiGate • Ubuntu 24.04</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xIa6QHHdFoz5kU-dKRNp9Q.png" /></figure><p>Dans ce TP, vous allez simuler une mission réelle de déploiement d’infrastructure réseau pour un client fictif. L’objectif est de mettre en place une architecture complète de surveillance et de sécurisation du réseau, en combinant deux technologies complémentaires et incontournables en entreprise :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*4pHL_n5YU7CUygvYt7AYCA.png" /></figure><h3>Pourquoi Zabbix?</h3><p>· Zabbix centralise les informations de supervision et évite de devoir vérifier chaque machine séparément.</p><p>· Il permet de détecter rapidement les anomalies sur le CPU, la mémoire, le disque, les services et le réseau.</p><p>· Il envoie des alertes lorsqu’un seuil est dépassé, ce qui aide à intervenir avant l’incident.</p><p>· Il s’adapte à différents types d’équipements grâce aux agents, au SNMP et aux modèles d’hôtes.</p><h3>Pourquoi FortiGate?</h3><p>· FortiGate permet de filtrer le trafic entre les zones du réseau et d’appliquer une politique de sécurité cohérente.</p><p>· Il limite les usages non autorisés grâce à des règles précises, placées dans le bon ordre.</p><p>· Il améliore la visibilité sur les flux entrants et sortants.</p><p>· Il complète Zabbix : l’un observe, l’autre protège.</p><h3>Pourquoi cette combinaison ?</h3><p>L’association Zabbix + FortiGate répond à une exigence fondamentale en cybersécurité moderne : voir et protéger. Zabbix vous donne la visibilité — vous savez ce qui se passe sur votre réseau à chaque instant. FortiGate vous donne le contrôle — vous décidez qui peut communiquer avec quoi, et comment.</p><p>Sans surveillance, une panne ou une intrusion peut passer inaperçue pendant des heures. Sans pare-feu, votre réseau est exposé aux menaces extérieures. Ensemble, ils forment le socle d’une infrastructure réseau professionnelle et résiliente.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*n0EdqrQmlMoBhnxyCKlE2g.png" /></figure><h4>I- Architecture Cible</h4><p>A la fin du TP, l’architecture devra ressembler à un environnement dans lequel le serveur Linux héberge Zabbix, les équipements du réseau remontent leurs données via l’agent ou SNMP, et le pare-feu FortiGate contrôle les accès selon des règles définies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*BaJ_0KpOQ0Cd3GXQ1HQKYg.png" /></figure><h4>Partie I — Préparation du Serveur Linux</h4><p>Avant d’installer Zabbix, le serveur Ubuntu doit être entièrement à jour et disposer de tous les services requis (Apache, PHP, MySQL). Cette étape est critique : une dépendance mal installée peut empêcher Zabbix de fonctionner correctement.</p><h4>Étape 1 — Mise à jour du système d’exploitation</h4><p>La première action sur tout serveur de production est de s’assurer que l’OS est à jour. Exécutez les commandes suivantes dans l’ordre :</p><pre>apt-get update<br>apt-get full-upgrade -y<br>reboot<br># Après le redémarrage :<br>do-release-upgrade<br>sudo apt-get update</pre><p><em>La commande do-release-upgrade effectue une montée de version vers Ubuntu 24.04 si ce n’est pas déjà le cas. Un redémarrage sera nécessaire après cette opération.</em></p><h4>Étape 2 — Installation d’Apache</h4><p>Apache est le serveur web qui hébergera l’interface graphique de Zabbix (frontend PHP). Installez-le en repartant d’une version propre:</p><pre>sudo apt update<br>sudo apt-get purge apache2 -y   # Nettoyer l&#39;ancienne installation si présente<br>sudo apt-get install apache2 -y</pre><h4>Étape 3 — Installation de PHP 8.3</h4><p>Zabbix 7.0 requiert PHP 8.0 ou supérieur. Nous utilisons PHP 8.3 avec le module MPM Prefork d’Apache (incompatible avec MPM Event pour PHP) :</p><pre>sudo su<br>apt-get install php8.3 -y<br>a2dismod mpm_event          # Désactiver MPM Event<br>a2enmod mpm_prefork         # Activer MPM Prefork<br>a2enmod php8.3              # Activer le module PHP<br>systemctl restart apache2<br>reboot</pre><h4>Étape 4 — Installation de MySQL</h4><p>MySQL sert de base de données pour stocker les données collectées par Zabbix (métriques, événements, utilisateurs). Sécurisez immédiatement l’accès root:</p><pre>sudo apt update<br>sudo apt install mysql-server -y<br>sudo systemctl start mysql.service<br>sudo mysql -u root -p<br># Dans le shell MySQL :<br>ALTER USER &#39;root&#39;@&#39;localhost&#39; IDENTIFIED WITH mysql_native_password BY &#39;VotreMotDePasse&#39;;<br>EXIT;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yVr3dYZ2y6ClhsHbV3z9JA.png" /></figure><h4>Partie II — Installation de Zabbix 7.0 LTS</h4><p>Zabbix est une solution open-source de supervision réseau et système de niveau entreprise. La version 7.0 LTS (Long Term Support) garantit une stabilité et un support jusqu’en 2029. Nous allons installer le serveur, le frontend web et l’agent local.</p><p>Le lien ci-contre fournit la méthode complète d’installation de Zabbix sur un serveur Ubuntu: <a href="https://www.zabbix.com/documentation/5.0/fr/manual/installation/install_from_packages/debian_ubuntu">https://www.zabbix.com/documentation/5.0/fr/manual/installation/install_from_packages/debian_ubuntu</a></p><h4>Étape 1 — Ajout du dépôt officiel Zabbix</h4><p>Zabbix fournit son propre dépôt APT pour Ubuntu 24.04. Ajoutez le puis mettez à jour la liste des paquets</p><pre>wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.0+ubuntu24.04_all.deb<br>dpkg -i zabbix-release_latest_7.0+ubuntu24.04_all.deb<br>apt update</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*vAejA-6S_MZ0yor-PVZhAg.png" /></figure><h4>Étape 2 — Installation des paquets Zabbix</h4><p>Installez en une seule commande le serveur Zabbix, le frontend PHP, la configuration Apache, les scripts SQL et l’agent local :</p><pre>apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent -y</pre><h4>Étape 3 — Création de la base de données Zabbix</h4><p>Zabbix nécessite une base de données dédiée avec son propre utilisateur MySQL. Connectez vous en root MySQL et exécutez :</p><pre>mysql -u root -p<br># Dans le shell MySQL :<br>CREATE DATABASE zabbix CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;<br>CREATE USER zabbix@localhost IDENTIFIED BY &#39;zabbix_password&#39;;<br>GRANT ALL PRIVILEGES ON zabbix.* TO zabbix@localhost;<br>SET GLOBAL log_bin_trust_function_creators = 1;<br>QUIT;</pre><p><em>Notez bien le mot de passe de l’utilisateur ‘zabbix’ — il sera demandé lors de l’import du schéma et de la configuration du serveur.</em></p><h4>Étape 4 — Import du schéma de base de données</h4><p>Importez le schéma complet fourni par Zabbix. Cette opération peut prendre plusieurs minutes selon la puissance du serveur :</p><pre>zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -u zabbix -p zabbix<br># Entrez le mot de passe de l&#39;utilisateur &#39;zabbix&#39; (pas root !)</pre><h4>Étape 5 — Sécurisation post-import</h4><p>Une fois le schéma importé, désactivez l’option log_bin_trust_function_creators qui n’est plus nécessaire :</p><pre>mysql -u root -p<br>mysql&gt; SET GLOBAL log_bin_trust_function_creators = 0;<br>mysql&gt; QUIT;</pre><h4>Étape 6 — Configuration du fichier Zabbix Server</h4><p>Éditez le fichier de configuration principal pour indiquer le mot de passe de la base de données :</p><pre>nano /etc/zabbix/zabbix_server.conf<br># Modifier la ligne :<br>DBPassword=zabbix_password</pre><h4>Étape 7 — Démarrage et activation des services</h4><p>Activez et démarrez tous les services Zabbix pour qu’ils se lancent automatiquement au démarrage :</p><pre>systemctl restart zabbix-server zabbix-agent apache2<br>systemctl enable zabbix-server zabbix-agent apache2<br>reboot</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*j9AgYJnUXenYK4QusSJlcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*04IpT8VX5rth5g1e5vf8GA.png" /></figure><h4>Partie III — Configuration des Hôtes et Alertes</h4><p>Une fois Zabbix opérationnel, il faut lui indiquer quels équipements surveiller. Cette étape se réalise depuis l’interface web de Zabbix.</p><h4>3.1 — Installation de l’agent Zabbix sur Windows Server</h4><p>Pour surveiller le serveur Windows, téléchargez et installez l’agent Zabbix pour Windows depuis le site officiel (zabbix.com). Lors de l’installation, configurez l’adresse IP du serveur Zabbix dans le champ ‘Server’ et ‘ServerActive’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*srj6HghDlrQBMKHTbM3aTQ.png" /></figure><h4>3.2 — Ajout des hôtes réseau</h4><p>Ajoutez chaque équipement du réseau dans Zabbix avec son adresse IP et le modèle de surveillance approprié :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*pH9UZihm1IyzQa5acmHVIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*xNvBmxaJxO8r_0HnH1iMjw.png" /></figure><h4>3.3 — Configuration des alertes</h4><p>Zabbix peut envoyer des alertes lorsqu’un seuil critique est atteint. Configurez les déclencheurs (triggers) suivants dans Configuration → Hôtes → [Hôte] → Déclencheurs :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*NiAfHA2B5T2TsRFT6Psp-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uv4z6JLtnox1R2IFG9He-w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CUXcyM3HYgsQwgJToTUQsQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*uwxhkJEvp7udMta3RGH7mA.png" /></figure><h4>Partie IV— Configuration du Routeur Cisco</h4><p>Le routeur Cisco fait partie des équipements supervisés par Zabbix via SNMP. Il faut également le sécuriser, mettre à jour son firmware et sauvegarder sa configuration.</p><h3>4.1 — Changement du hostname</h3><pre>enable<br>configure terminal<br>hostname Mon-Router<br>end</pre><h3>4.2 — Activation et sécurisation SNMP</h3><p>SNMP (Simple Network Management Protocol) permet à Zabbix de collecter des métriques depuis le routeur (CPU, trafic interfaces, mémoire) :</p><pre>configure terminal<br>snmp-server community SNMP ro          # Community string en lecture seule<br>snmp-server location Salle-Serveurs<br>snmp-server contact admin@nexbyte.ca<br>end</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LWtX7RQBwgkciqIhsnnWjg.png" /></figure><h4>4.3 — Mise à jour du firmware par TFTP</h4><p>Téléchargez la mise à jour depuis le répertoire E:/Config/Cisco du serveur Windows via TFTP :</p><pre>copy tftp: flash:<br># Entrez l&#39;adresse IP du serveur TFTP (Windows Server)<br># Entrez le nom du fichier de mise à jour</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*87xG0239gCpFR1eYJRXJcg.png" /></figure><h4>4.4 — Sauvegarde de la configuration</h4><p>Sauvegardez la configuration active vers le serveur Windows ET dans la mémoire de démarrage :</p><pre># Sauvegarde vers serveur TFTP (Windows Server)<br>copy running-config tftp:<br><br># Sauvegarde locale (survie au redémarrage)<br>copy running-config startup-config</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FMttp1o0298QsdU9vp81cA.png" /></figure><h4>Partie V — Déploiement du Pare-feu FortiGate</h4><p>Le pare-feu FortiGate est le gardien de votre réseau. Il inspecte tout le trafic entrant et sortant et applique des règles de sécurité précises. Dans ce TP, nous allons créer une règle bloquant l’accès à Internet pour le poste Windows 11.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*WANQpRupqyrLRQMplFJ74g.png" /></figure><h4>5.1 — Création de l’objet adresse IP</h4><p>Avant de créer la règle, définissez l’objet représentant l’adresse IP du poste Windows 11 dans FortiGate.</p><ol><li>Accédez à l’interface FortiGate : <a href="https://[IP_FORTIGATE]">https://[IP_FORTIGATE]</a></li><li>Naviguez vers : Politique &amp; Objets → Adresses</li><li>Cliquez sur « Créer Nouveau »</li><li>Nom : Windows11</li><li>Type : IP Range</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*h_asyeGj8bAlNccvfOf8CA.png" /></figure><h4>5.2 — Création de la règle de blocage</h4><p>Créez une règle de pare-feu qui bloque le trafic Internet depuis le poste Windows 11 :</p><ol><li>Naviguez vers : Politique &amp; Objets → Firewall Policy</li><li>Cliquez sur « Créer Nouveau »</li><li>Nom : Blocage-Internet-Win11</li><li>Interface source : LAN</li><li>Interface de destination : WAN — Destination : all</li><li>Action : DENY (Refuser)</li><li>Sauvegarder</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*YT9ioSUAzghwQbZp2D_PJg.png" /></figure><h4>5.3 — Positionnement des règles (ordre de priorité)</h4><p>FortiGate applique les règles dans l’ordre de leur position dans la liste. Une règle DENY placée après une règle ALLOW globale sera ignorée, car l’ALLOW correspondra en premier.</p><p><em>Assurez-vous que la règle de blocage ‘Blocage-Internet-Win11’ est positionnée AVANT la règle d’accès Internet global. Un DENY placé après un ALLOW ne s’appliquera jamais, car la première règle correspondante gagne toujours.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6fdmwwfzz2ow2xzBel0EFA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b96e4e9944c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Hands-On Lab: Creation of a Dynamic Website on AWS and Multi‑Region Deployment]]></title>
            <link>https://medium.com/@gwladysgodem/aws-hands-on-lab-creation-of-a-dynamic-website-on-aws-and-multi-region-deployment-ab63e94fc524?source=rss-ebf81671f1c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab63e94fc524</guid>
            <category><![CDATA[ssm-agent]]></category>
            <category><![CDATA[ami]]></category>
            <category><![CDATA[aws-handson]]></category>
            <category><![CDATA[multi-region]]></category>
            <category><![CDATA[iam-roles]]></category>
            <dc:creator><![CDATA[Gwladysgodem]]></dc:creator>
            <pubDate>Mon, 05 Jan 2026 08:32:52 GMT</pubDate>
            <atom:updated>2026-01-05T08:32:52.388Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9BS90tnrKFE7gVPgiDO3DA.png" /></figure><h3>Purpose</h3><p>This lab project demonstrates how to:<br> <strong>→</strong> Create an EC2 instance in the us‑east‑1 Region<br> <strong>→</strong> Access the EC2 instance through AWS Systems Manager (SSM)<br> <strong>→</strong> Analyze the EC2 instance environment and confirm web server accessibility<br> <strong>→</strong> Install a web application on an EC2 instance<br><strong>→ </strong>Test the web application<br><strong>→</strong> Create an Amazon Machine Image (AMI)<br> <strong>→</strong> Deploy a second copy of the web application to another AWS Region</p><p><a href="https://youtu.be/rKmLLVDEaR0?si=gjiW6KXDGzVQhsl2">https://youtu.be/rKmLLVDEaR0?si=gjiW6KXDGzVQhsl2</a></p><h3>I. Architectural Differences Between Static and Dynamic Websites on AWS</h3><p>When comparing static and dynamic websites on AWS, the main difference lies in how the content is generated and where the processing happens.</p><h4>1- Static Website Architecture on AWS</h4><p>A static website contains content that does not change based on user input or server‑side logic. The server simply returns files exactly as stored. On AWS, the best solution for static hosting is Amazon S3.</p><p><strong>General process:</strong><br> • Upload your files (for example index.html) into an S3 bucket<br> • Enable Static Website Hosting<br> • Users access the site via the S3 website endpoint<br> • Optionally integrate Amazon CloudFront for better performance and HTTPS support</p><h4>2. Dynamic Website Architecture on AWS</h4><p>A dynamic website generates content in real‑time based on application logic or user interaction, such as authentication systems, dashboards, or database‑driven pages.</p><p>A typical AWS‑based dynamic web architecture includes:<br> • An EC2 instance (virtual server)<br> • A web server such as Apache (httpd) or Nginx<br> • An application runtime such as PHP<br> • A database such as MariaDB or MySQL<br> • Website files stored in /var/www/html</p><h3>II. Multi‑Region Architecture</h3><p>In this lab, a multi‑Region deployment is implemented. This means the application is hosted across two AWS Regions to achieve:<br> • High availability and disaster recovery<br> • Improved global performance and reduced latency<br> • Compliance with regulatory or data residency needs<br> • Resilience in case a Region experiences failure</p><h3>III. Accessing EC2 Instances via Command Line</h3><p>AWS offers multiple methods for interacting with resources through the command line such as the AWS CLI, SDKs, Infrastructure‑as‑Code tools, and Systems Manager (SSM). These tools allow automation of tasks including:<br> • Launching instances<br> • Stopping instances on schedule<br> • Rotating credentials<br> • Applying updates<br> • Scaling environments</p><p>For this lab, AWS Systems Manager Session Manager is used to access EC2 instances securely without opening SSH ports. This is especially useful when Cloud9 is unavailable.</p><h3>IV. Lab Walkthrough</h3><h4>Part 1 — Deploying a Dynamic Website in Region 1</h4><h4><strong>Step 1 — Create a VPC</strong></h4><p>Create a new VPC named my‑website‑labo with IPv4 CIDR block 10.0.0.0/24. This VPC will host the application infrastructure.</p><ol><li>Sign in to <strong>AWS Management Console</strong></li><li>Go to <strong>VPC</strong></li><li>Click <strong>Create VPC</strong></li><li>Choose: <strong>VPC only</strong></li><li>Configure: <strong>Name</strong>: <strong>my-website-labo &amp; IPv4 CIDR block</strong>: 10.0.0.0/24</li></ol><p>6. Click <strong>Create VPC</strong></p><h4><strong>Step 2 — Create an Internet Gateway</strong></h4><p>Create and attach an Internet Gateway to the VPC to enable public internet connectivity.</p><p>An Internet Gateway allows resources inside a VPC to communicate with the public Internet.</p><p>IGW provides a path between the VPC and the Internet, if there is no IGW, EC2 instances <strong>cannot access the Internet.</strong></p><ol><li>In <strong>VPC Dashboard</strong></li><li>Click <strong>Internet Gateways</strong></li><li>Click <strong>Create internet gateway</strong></li><li>Name it: <strong>IGW-labo</strong></li><li>Click <strong>Create internet gateway</strong></li></ol><h4><strong>Step 3 — Create a Public Subnet</strong></h4><p>Create a subnet inside the VPC to host public workloads.<br> A subnet is considered public only if:<br> • The route table includes a default route to the Internet Gateway<br> • The VPC has an attached Internet Gateway<br> • Instances receive public IP addresses</p><p>To create public subnet:</p><ol><li>In the <strong>VPC Dashboard</strong></li><li>Click <strong>Subnets</strong></li><li>Click <strong>Create subnet</strong></li></ol><p><strong>Subnet configuration</strong></p><ul><li><strong>VPC</strong>: select <strong>IGW-labo</strong></li><li><strong>Subnet name</strong>: <strong>public-subnet-labo</strong></li><li><strong>Availability Zone</strong>: us-east-1a (or any AZ)</li><li><strong>IPv4 CIDR block</strong>: 10.0.0.0/28</li></ul><h4><strong>Step 4 — Enable Auto‑Assign Public Ips in public subnet</strong></h4><p>This ensure that instances launched in the public subnet automatically receive public IPs. Without this step, the subnet is NOT effectively public.</p><ol><li>Select public-subnet-1</li><li>Click <strong>Actions</strong></li><li>Click <strong>Edit subnet settings</strong></li><li>Enable: <strong>Auto-assign public IPv4 address</strong></li><li>Click <strong>Save</strong></li></ol><h4>Step 6 — Attach the Internet Gateway to the VPC</h4><p>Attach the previously created IGW to the VPC to activate outbound connectivity.</p><ol><li>Select my-igw</li><li>Click <strong>Actions</strong></li><li>Click <strong>Attach to VPC</strong></li><li>Select: <strong>IGW-labo</strong></li><li>Click <strong>Attach</strong></li></ol><h4>Step 7 — Create a Public Route Table <strong>for the Public Subnet</strong></h4><p>Create and associate a route table with the public subnet.</p><ol><li>In <strong>VPC Dashboard</strong></li><li>Click <strong>Route tables</strong></li><li>Click <strong>Create route table</strong></li></ol><p><strong>Configuration: Name</strong>: public-route-table-labo</p><p>4. Click <strong>Create route table</strong></p><h4>Step 8 — <strong>Add Route to Internet Gateway</strong></h4><p>Add a route for 0.0.0.0/0 pointing to the Internet Gateway.</p><ol><li>Select public-rt</li><li>Go to <strong>Routes tab</strong></li><li>Click <strong>Edit routes</strong></li><li>Click <strong>Add route</strong></li></ol><p><strong>Add this route:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/1*mXhFJq-NuQlVJEkn7XUbZA.png" /></figure><p>5. Click <strong>Save changes</strong></p><h4>Step 9 — <strong>Associate Route Table with the Public Subnet</strong></h4><p>Associate the public route table with the public subnet.</p><ol><li>Select public-rt</li><li>Go to <strong>Subnet associations</strong></li><li>Click <strong>Edit subnet associations</strong></li><li>Select: public-route-table-labo</li><li>Click <strong>Save associations</strong></li></ol><h4>Step 10 — Create a Security Group</h4><p>Create a security group named <strong>SG‑labo</strong> to control inbound and outbound traffic. This is a critical security layer since web servers are publicly accessible over the internet.</p><p>AWS assumes you are responsible for securing your EC2 instance, so without security groug,</p><h4>Step 11 — Create an EC2 Instance</h4><p>Launch an EC2 instance using the VPC, subnet, and security group created earlier.</p><h4>Step 12 — Create an IAM Role</h4><p>Create an IAM role and attach the AmazonSSMManagedInstanceCore policy. This role allows EC2 to communicate securely with Systems Manager without SSH access.</p><ol><li><em>Va dans </em><strong><em>IAM → Roles</em></strong></li><li><em>Click </em><strong><em>Create role</em></strong></li><li><em>Type :<br> ✔ AWS Service<br> ✔ EC2</em></li><li><em>Ajoute la policy suivante :<br> ✔ AmazonSSMManagedInstanceCore</em></li><li><em>Nommer la rôle : EC2-SSM-Role</em></li><li><em>Créer</em></li></ol><h4>Step 13 — Attach IAM Role to EC2</h4><p>Attach the IAM role to the instance so it can register with Systems Manager.</p><p>Go to EC2 console → Instance → Actions → Security → Modify IAM role → select one with</p><h4>Step 14 — Configure SSM Access</h4><p>Enable and start the SSM Agent on the EC2 instance allow to run Command feature in Systems Manager.</p><p><strong>First — Identify Your OS (Linux in this case)</strong></p><p><strong>Second: configure AWS Systems Manager:</strong></p><p><strong>1 — Open Run Command</strong></p><p>Go to:</p><p><strong>AWS Console → Systems Manager → Run Command</strong></p><p>Click <strong>Run command</strong></p><p><strong>2 — Choose Document</strong></p><p>Search:</p><p>AWS-RunShellScript</p><p>(select it)</p><p><strong>3 — Select Your Instance</strong></p><p>Scroll → <strong>Targets → Choose instances manually</strong> → select your EC2</p><p><strong>4 — Enter Command (depending on OS)</strong></p><p><strong>I my case is Amazon Linux 2 / 2023, so the code is:</strong></p><p>sudo systemctl enable amazon-ssm-agent</p><p>sudo systemctl start amazon-ssm-agent</p><p>sudo systemctl status amazon-ssm-agent</p><p><strong>5 — Check if it Worked</strong></p><p>Go to:</p><p>Systems Manager → Fleet Manager → Managed Instances</p><p>Your instance should now show:</p><p><strong>6 — Confirm your OS</strong></p><p>After running the step 5, the session manager is open and you can execute the command line.</p><p>Step 15 — Install Apache Web Server<br> Install and enable Apache httpd on the EC2 instance.</p><pre>sudo yum update -y<br>sudo yum install httpd -y<br>sudo systemctl enable httpd<br>sudo systemctl start httpd<br>sudo systemctl status httpd</pre><p>Step 16 — Install PHP and MariaDB<br> Install PHP runtime and MariaDB database server so the instance can support dynamic applications.</p><pre>sudo yum update -y<br># Install &amp; start PHP<br>sudo yum install -y php php-cli php-common php-mysqlnd php-fpm<br>sudo systemctl start php-fpm<br>sudo systemctl enable php-fpm<br># Install MariaDB Server &amp; Client<br>sudo dnf update -y<br>sudo dnf install -y mariadb105-server<br>sudo systemctl start mariadb<br>sudo systemctl enable mariadb</pre><p>Step 17 — Configure File Ownership<br> Grant ec2‑user permission to manage web content stored in /var/www/html.</p><pre>sudo chown ec2-user:ec2-user /var/www/html</pre><p>Step 18 — Create a Test Webpage<br> Create a simple index.html file to verify the web server is working.</p><p><em>Do </em><strong><em>cd /var/www/html</em></strong></p><p>Create a new file name index.html and add the content into this file using command:</p><pre>sudo bash -c &#39;echo &quot;&lt;html&gt;Hello from the café web server!&lt;/html&gt;&quot; &gt; /var/www/html/index.html&#39;</pre><p>Step 19 — Deploy the Dynamic Website<br> Upload website files to Amazon S3 and then sync them to the EC2 instance directory /var/www/html. Assign correct file permissions.</p><p>- Download the website file at the <strong>website </strong><a href="https://templatemo.com/tm-539-simple-house"><strong>https://templatemo.com/tm-539-simple-house</strong></a></p><p>- Create an S3: named s3-website-lab1</p><p>- Upload website file in the bucket on AWS console graphically</p><p>- Add the permission to Iam role create before to read in this bucket</p><p><strong>1: Go to IAM Console</strong></p><ol><li>Open AWS Console</li><li>Search for “IAM” in the search bar</li><li>Click on “IAM”</li></ol><p><strong>2: Find Your Role</strong></p><ol><li>Click “Roles” in the left sidebar</li><li>Search for EC2-SSM-Role</li><li>Click on the role name</li></ol><p><strong>3: Add S3 Permissions</strong></p><ol><li>Click “Add permissions” button</li><li>Click “Attach policies”</li><li>Search for AmazonS3ReadOnlyAccess</li><li>Check the box next to it</li><li>Click “Add permissions”</li></ol><p>- Use below command to copy file from bucket to directory <strong>/var/www/html</strong></p><pre># Sync all files from S3 bucket<br>sudo aws s3 sync s3://your-bucket-name/ /var/www/html/ - delete<br># Fix ownership<br>sudo chown -R apache:apache /var/www/html/<br># Fix directory permissions<br>sudo find /var/www/html -type d -exec chmod 755 {} \;<br># Fix file permissions<br>sudo find /var/www/html -type f -exec chmod 644 {} \;<br># Verify the copy<br>ls -la /var/www/html/</pre><p>Step 20– Validate Website Access<br> Access the website in the browser using the EC2 public IP.</p><p><a href="http://ec2-public-ip-address/">http://EC2-public-IP-Address/</a></p><p>Part 2 — Creating an AMI and Deploying to Region 2</p><p>Step 1 — Create an AMI<br> Create a machine image from the configured EC2 instance. This preserves all software, configuration, and website files.</p><p>Choose <strong>Actions</strong> &gt; <strong>Images and templates</strong> &gt; <strong>Create image</strong></p><p>1- On the Amazon EC2 console, in the <strong>Create Image</strong> page, for <strong>Image name</strong>, enter image-website-lab.</p><p>2- Choose <strong>Create Image</strong>.</p><p>3- From the navigation menu, choose <strong>AMIs</strong>, and wait until the image status becomes <em>Available</em>.</p><p>Step 2 — Copy AMI to Another Region<br> Copy the AMI from Region 1 to Region 2 so it becomes available for launching instances there.</p><p><strong>Using AWS Console</strong></p><ol><li>Go to <strong>EC2 → AMIs</strong> in <strong>Region 1</strong>.</li><li>Select the AMI you created.</li><li>Click <strong>Actions → Copy AMI</strong>.</li><li>In the popup:</li></ol><ul><li><strong>Destination Region</strong> → Region 2 (where you want to launch the new EC2)</li><li>(Optional) Give a <strong>name</strong> and <strong>description</strong>.</li></ul><ol><li>Click <strong>Copy AMI</strong>.</li><li>Wait until the copy process is completed. It may take a few minutes.</li></ol><p>Step 3 — Recreate Networking in Region 2<br> Rebuild VPC and networking components like Region 1.</p><p>Step 4 — Launch EC2 From the Copied AMI<br> Launch an EC2 instance using the copied AMI in Region 2.</p><ol><li>Switch to <strong>Region 2</strong> in the AWS Console.</li><li>Go to <strong>EC2 → AMIs</strong> and select your copied AMI.</li><li>Click <strong>Launch</strong>.</li><li>Configure instance type, network, security group, etc.</li><li>Launch the instance.</li></ol><h3>Conclusion</h3><p>This lab demonstrates how to design and deploy a dynamic website using AWS EC2, Systems Manager, and AMI replication across Regions. The solution supports resilience, centralized management, scalability, and secure administration without exposing SSH access.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab63e94fc524" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Amazon EC2 Instances: Create a Dynamic Website]]></title>
            <link>https://medium.com/@gwladysgodem/understanding-amazon-ec2-instances-create-a-dynamic-website-a027b6004a45?source=rss-ebf81671f1c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a027b6004a45</guid>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[ec2-security]]></category>
            <category><![CDATA[lightsail]]></category>
            <category><![CDATA[ec2-pricing]]></category>
            <category><![CDATA[aws-dynamic-website]]></category>
            <dc:creator><![CDATA[Gwladysgodem]]></dc:creator>
            <pubDate>Wed, 31 Dec 2025 02:25:38 GMT</pubDate>
            <atom:updated>2025-12-31T03:47:14.877Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Understanding Amazon EC2 Instances: Create a Secure Dynamic Website</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9USmOGOGYBCC9uDCBN7V-w.jpeg" /></figure><h3><strong>Introduction</strong></h3><p>Amazon Elastic Compute Cloud (EC2) is AWS’s core service for provisioning virtual servers, known as instances, in the cloud. Each EC2 instance functions as a virtual computer running on AWS infrastructure, allowing customers to install and manage their own operating system, applications, and configurations.</p><p>To better understand how EC2 is used at an architectural level, this article is based on a real-life scenario: <strong>the design and deployment of a dynamic restaurant website</strong>. Using this case, we will analyze key workload characteristics and explain how to make informed architectural decisions.</p><p>A dynamic restaurant website typically includes features such as online menus, table reservations, customer contact forms, image galleries, and possibly online ordering that require a web server and persistent storage.</p><p>Amazon Elastic Compute Cloud (EC2) allows us to host such a website by providing <strong>virtual servers</strong> that run web applications in the cloud. EC2 gives full control over the operating system, installed software, and security configuration.</p><p>To design an efficient EC2-based solution, we must analyze:</p><ul><li><strong>Workload characteristics</strong> (traffic level, performance needs)</li><li><strong>Instance type</strong> (CPU and memory)</li><li><strong>Storage options</strong> (durability and access patterns)</li><li><strong>Pricing model</strong> (cost optimization)</li><li><strong>Security mechanisms</strong> (protect customer data and availability)</li></ul><p>This article explains how to make these choices in a clear and structured way.</p><h3><strong>What Is a Compute and Why EC2</strong></h3><p>A compute option in AWS is simply a way to run your application code. AWS provides multiple compute services because applications have different needs. Some applications need full control over servers, while others only need to run short pieces of code. AWS compute services can be grouped into four main categories:</p><p>- Virtual Machines (EC2)</p><p>- Containers (ECS / EKS / Fargate)</p><p>- Serverless Functions (Lambda)</p><ul><li>Simplified Servers (Lightsail)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*dKf90Ruv7329O0HouqVDOA.png" /></figure><p>A dynamic website requires several core components to function correctly and reliably. It needs:</p><p>- A <strong>web server</strong>, such as Apache or Nginx, to handle incoming HTTP requests from users.</p><p>- An <strong>application runtime</strong> (for example PHP, Java, or Node.js) to generate dynamic content based on user interactions.</p><p>- a <strong>database connection</strong> to store and retrieve data such as reservations, user information, or orders.</p><p>- A <strong>Persistent storage</strong> is essential to ensure that application data and files are not lost when the server restarts.</p><p>- A <strong>security configuration </strong>to protect the application and customer data, as well as the ability to scale when traffic increases.</p><p>Amazon EC2 fits these requirements well because it provides full control over the operating system and installed software, allowing architects to configure any web and application stack needed by the website.</p><h3><strong>EC2 Instance Types and Use Cases</strong></h3><p>An EC2 instance is a virtual computer in the cloud. Just like a physical computer, it has:</p><ul><li>CPU (processing power)</li><li>Memory (RAM)</li><li>Storage (disk)</li><li>Network connectivity</li></ul><p>As applications do not all need the same resources, AWS offers different types of EC2 instances. This table summarizes the different EC2 instances types.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*wRn_y_k6FCngY22Pcz3rHQ.png" /></figure><h4>Example<em>:</em></h4><p>- A streaming company might use a <strong>C5d</strong> instance (compute-optimized with local NVMe SSDs) for live video encoding, since it provides high CPU performance and fast scratch storage</p><p>- An in-memory database (e.g. Redis, SAP HANA) often runs on an <strong>R5</strong> instance (memory-optimized) to keep large datasets in RAM</p><p>- A graphics startup training AI models may choose <strong>G4</strong> GPU instances (accelerated) because G4’s NVIDIA T4 GPUs are cost-effective for inference and graphics tasks</p><h3><strong>EC2 Storage Options</strong></h3><p>Each Amazon EC2 instance can use different types of storage, and choosing the right one is essential for performance, data durability, and security. Below are the different type of storage use when creating an EC2 instance:</p><p>- <strong>Instance Store (Temporary Storage)</strong></p><p>Instance Store provides very fast storage that is physically attached to the host server running the EC2 instance. While it offers high performance, it is temporary (ephemeral). This means that all data is lost if the instance is stopped, terminated, or experiences a hardware failure.</p><p>Because of this limitation, Instance Store is only suitable for temporary data, such as cache files, temporary buffers, or processing scratch space. It is not appropriate for storing website content,</p><p>- <strong>Amazon Elastic Block Store (EBS)</strong></p><p>Amazon EBS provides persistent block storage that remains available even if the EC2 instance is stopped or restarted. EBS volumes can be attached or detached from EC2 instances within the same Availability Zone, making them ideal for operating system disks and application data.</p><p>EBS also supports <strong>encryption at rest</strong> using AWS Key Management Service (KMS), and it’s suitable for the Operating system, web server and application files…</p><p>- <strong>Amazon Elastic File System (EFS)</strong></p><p><strong>Amazon EFS</strong> is a fully managed, shared file system that uses the Network File System (NFS) protocol. It allows <strong>multiple EC2 instances</strong> to access the same files at the same time, even across different Availability Zones.</p><p>In dynamic website architecture, EFS is useful when:</p><ul><li>The website runs on multiple EC2 instances</li><li>Images, uploaded files, or media content must be shared</li><li>High availability is required</li></ul><p><strong>Amazon FSx</strong> provides specialized file systems designed for Windows File Server, it’s supports Windows-based applications using the SMB protocol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*s9NxvfzhnDwSvc1bk0U4Qw.png" /></figure><h3><strong>EC2 Pricing and Purchasing Models</strong></h3><p>Amazon EC2 provides several pricing and purchasing models so that customers can match their <strong>compute costs</strong> to their <strong>workload patterns</strong>. Below are the different AWS pricing models:</p><p>- <strong>On-Demand Instances</strong></p><p><strong>On-Demand Instances</strong> allow you to pay for compute capacity by the second (with a minimum of 60 seconds), with <strong>no upfront commitment</strong>. This model offers maximum flexibility because instances can be started, stopped, or terminated at any time.</p><p>For a dynamic website, On-Demand instances are ideal during the initial deployment phase or when traffic levels are unpredictable. For example, when launching a new restaurant website, it may be difficult to estimate the number of visitors.</p><p>- <strong>Reserved Instances and Savings Plans</strong></p><p><strong>Reserved Instances (RIs)</strong> provide significant cost savings in exchange for a one-year or three-year commitment. By committing to consistent usage, customers can receive discounts of up to approximately 70% compared to On-Demand pricing. There are two main types:</p><p>Similarly, <strong>Savings Plans</strong> provide discounts by committing to a consistent level of compute usage (measured in dollars per hour) over one or three years.</p><p>For a dynamic website that has stable and predictable traffic, such as a well-established restaurant site with steady daily visitors, Reserved Instances or Savings Plans are an excellent choice to reduce long-term costs while maintaining continuous availability.</p><p>- <strong>Spot Instances</strong></p><p><strong>Spot Instances</strong> allow customers to use unused EC2 capacity at <strong>deep discounts</strong>, sometimes up to 90% less than On-Demand pricing. However, Spot Instances can be <strong>interrupted by AWS at any time</strong> when capacity is needed elsewhere.</p><p>Because a dynamic website must be <strong>available at all times</strong>, Spot Instances are <strong>not suitable for the main web server</strong>.</p><p>- <strong>Dedicated Hosts and Dedicated Instances</strong></p><p><strong>Dedicated Hosts</strong> and <strong>Dedicated Instances</strong> provide physical servers or virtual machines that are not shared with other AWS customers. These options are typically used to meet strict compliance, regulatory, or licensing requirements, such as Bring Your Own License (BYOL) for enterprise software.</p><p>For a typical dynamic website, including a restaurant website, these options are generally <strong>unnecessary and costly</strong> unless there are specific legal or compliance requirements.</p><h3><strong>Amazon EC2 Security Best Practices</strong></h3><p>Securing an Amazon EC2 instance is not done using a single control, but through multiple security layers working together. The security mechanisms include:</p><p><strong>1-</strong> <strong>Network Isolation Using Amazon VPC</strong></p><p>Every EC2 instance should be launched inside an Amazon Virtual Private Cloud (VPC). A VPC provides a logically isolated network where you control IP ranges, subnets, and routing. For a dynamic website, the EC2 instance hosting the web application is typically placed in a <strong>public subnet</strong>, allowing internet access through an Internet Gateway, while backend services such as databases should be placed in <strong>private subnets</strong> for added security.</p><p><strong>2-</strong> <strong>Security Groups as the First Line of Defense</strong></p><p>Security Groups act as virtual firewalls for EC2 instances. They control inbound and outbound traffic and follow a least privilege approach by allowing only necessary ports and protocols.</p><p><strong>3-</strong> <strong>Identity and Access Management (IAM)</strong></p><p>AWS Identity and Access Management (IAM) is used to control who can access and manage EC2 instances. Applications running on EC2 should never store AWS access keys directly on the server. Instead, EC2 instances should use IAM roles, which provide temporary credentials and allow secure access to other AWS services.</p><p><strong>4-</strong> <strong>Operating System Hardening and Patching</strong></p><p>Keeping the operating system and installed software up to date is critical. Vulnerabilities in the OS or application stack can be exploited if patches are not applied regularly. AWS Systems Manager Patch Manager can be used to automate patching for EC2 instances.</p><p>For dynamic websites, using Amazon Linux 2023 is recommended because it includes modern security features and long-term support.</p><p><strong>5-</strong> <strong>Encryption of Data at Rest and in Transit</strong></p><p>For a dynamic website, sensitive data such as user information and reservation details must be protected. Amazon EBS encryption should be enabled to protect data at rest, using AWS Key Management Service (KMS). Data in transit should be secured using HTTPS (TLS encryption).</p><p>Sensitive configuration values, such as database passwords, should be stored in AWS Secrets Manager or AWS Systems Manager Parameter Store, rather than in plaintext files on the instance.</p><p><strong>6-</strong> <strong>Web Application Protection</strong></p><p>To protect the web application itself, EC2 instances hosting a dynamic website should be placed behind an <strong>Application Load Balancer (ALB)</strong>. <strong>AWS Web Application Firewall (WAF)</strong> can be integrated with the ALB to block common web attacks such as SQL injection, cross-site scripting (XSS), and malicious bots.</p><p>For protection against large-scale attacks, AWS Shield provides automatic DDoS protection. Shield Standard is enabled by default and is sufficient for most small to medium websites.</p><p><strong>7-</strong> <strong>Monitoring, Logging, and Threat Detection</strong></p><p>Continuous monitoring is essential for maintaining a secure environment. Amazon <strong>CloudWatch</strong> can be used to track performance metrics and set alarms. AWS <strong>CloudTrail</strong> logs all API activity, providing audit trails. Additional services such as Amazon <strong>Inspector</strong>, <strong>GuardDuty</strong>, and <strong>Security Hub</strong> help detect vulnerabilities and suspicious activity.</p><p>These tools allow administrators to respond quickly to security incidents affecting the dynamic website.</p><p><strong>8-</strong> <strong>Backup and Recovery</strong></p><p>Regular backups are a critical part of security. EBS snapshots should be taken frequently to allow data recovery in case of failure or compromise. Creating Amazon Machine Images (AMIs) of critical EC2 instances allows rapid restoration. Deploying resources across multiple Availability Zones improves fault tolerance.</p><h3><strong>Conclusion</strong></h3><p>Building and hosting a dynamic website on AWS requires making informed architectural decisions. Throughout this article, we examined Amazon EC2 as the core compute service and explained how to select the appropriate instance type, storage options, pricing model, and security controls based on real workload requirements.</p><p>For our dynamic website, Amazon EC2 provides the right balance of flexibility, control, and reliability. General-purpose EC2 instances (such as the T or M families) are well suited to web workloads, while Amazon EBS ensures persistent and secure storage. Cost efficiency can be achieved by starting with On-Demand pricing and later optimizing with Savings Plans or Reserved Instances. A layered security approach using VPC isolation, security groups, IAM roles, encryption, and monitoring services helps protect both the infrastructure and user data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a027b6004a45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon S3: Strategies for Securing, Ensuring Availability, and Durability]]></title>
            <link>https://medium.com/@gwladysgodem/amazon-s3-strategies-for-securing-ensuring-availability-and-durability-0e19a0f97afb?source=rss-ebf81671f1c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e19a0f97afb</guid>
            <category><![CDATA[cross-region-replication]]></category>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[versionning]]></category>
            <category><![CDATA[amazon-cloudfront]]></category>
            <category><![CDATA[lifecycle-management]]></category>
            <dc:creator><![CDATA[Gwladysgodem]]></dc:creator>
            <pubDate>Sun, 28 Dec 2025 02:27:36 GMT</pubDate>
            <atom:updated>2025-12-28T02:27:36.232Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*BNrZ0OEVaF-PKKamH3uPvw.png" /></figure><h3><strong>Introduction</strong></h3><p>Amazon Simple Storage Service (Amazon S3) is a highly scalable object storage service offered by AWS, designed to store virtually unlimited amounts of data in the cloud. Data stored in S3 is automatically replicated across multiple Availability Zones within a region, providing exceptional reliability with <strong>99.999999999% durability</strong> and <strong>99.99% availability</strong> by default. However, high availability and durability alone do not fully protect data from risks such as accidental deletion, unauthorized access, misconfiguration, or uncontrolled data growth. To address these challenges, enterprises must actively configure additional data management and security controls. Features such as object versioning, lifecycle rules, and fine-grained access controls play a critical role in safeguarding data, managing costs, and ensuring compliance, even in a service as resilient as S3.</p><h3><strong>I- Different Storage type</strong></h3><p>AWS provides multiple storage services, each designed to meet specific business needs, performance requirements, durability expectations, and access patterns. Below is summary of the main AWS storage types:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*hPZUXOCnMra0dZrQYG4YSQ.png" /></figure><h3><strong>II. S3 Common Use Cases</strong></h3><p>Amazon S3 is used in many typical cloud scenarios:</p><p>1️⃣- <strong>Media and content hosting:</strong> Enterprises store static media assets (images, videos, audio) in S3 and often front them with Amazon CloudFront (a CDN). CloudFront caches S3 objects at edge locations worldwide, delivering content with low latency and high availability. This setup “ensures fast content delivery with low latency and high availability” for media streaming.</p><p>2️⃣- <strong>Static website hosting:</strong> S3 can host static websites (HTML/CSS/JS) without any servers. You enable the website feature on an S3 bucket <a href="http://www.example.com),/">,</a> upload your site files, and Amazon serves them via the bucket’s website endpoint. S3 automatically replicates content across multiple data centers. Even if one data center is impaired, the site remains up. In practice, it’s common to use CloudFront + Route 53 with S3 for a highly available, global website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*Kym9LUXogapEzdgdeIw4ZA.png" /></figure><p>3️⃣- <strong>Data lakes and analytics</strong>: Many enterprises use S3 as a centralized data lake. It can hold structured or unstructured data of any size (log files, CSV/JSON, images, backups, etc.) for analytics. AWS services like Athena, Glue, EMR, and Redshift Spectrum can query data directly in S3 without moving it. For example, Amazon Athena lets you run SQL queries on data stored in S3 as if it were a database.</p><p>4️⃣- <strong>Backups and archiving:</strong> S3’s high durability and flexible storage classes make it excellent for backups and long-term archives. Organizations backup databases, files, and virtual machine images to S3 Standard or S3 Glacier classes. AWS Backup and third-party tools can automate these S3 backups. Because S3 supports versioning and cross-region replication, critical data can be redundantly stored in a second region (meeting RTO/RPO and compliance needs). For long-term archiving, S3 Glacier Instant Retrieval, Flexible Retrieval, and Deep Archive provide extremely low-cost, durable storage (with longer retrieval times).</p><p>5️⃣- <strong>Other enterprise uses:</strong> S3 is also used for big data frameworks (e.g. Spark/Hadoop on EMR), software distribution (hosting installer binaries), IoT data collection, and as a backend store for event-driven processing (e.g. triggering AWS Lambda when objects arrive). These use cases all leverage S3’s scale and simplicity to store large datasets or serve files to applications.</p><h3><strong>III. Strategies to Secure, Ensure High Availability, and High Durability of Amazon S3</strong></h3><p>Amazon S3 is designed to be secure, highly available, and extremely durable by default. However, in real-world enterprise environments, additional configurations and best practices are required to fully protect data and ensure business continuity. This section explains how organizations can secure their S3 data, keep it continuously available, and protect it against data loss.</p><h4><strong>1. Securing Amazon S3</strong></h4><p>Security is a fundamental requirement for any storage service. In Amazon S3, security is achieved through access control, encryption, data protection features, and continuous monitoring.</p><p>➡️ <strong>Access control</strong></p><p>By design, all S3 buckets and objects are <strong>private</strong>. Access is granted explicitly using AWS Identity and Access Management (IAM) and bucket policies. The <strong>principle of least privilege</strong> should be implemented to grant only permissions to the users and applications. <strong>IAM roles</strong> should be used rather than long-term access keys, which reduces the risk of credential exposure.</p><p>➡️<strong>Encryption</strong></p><p>Encryption is another critical layer of protection. Amazon S3 automatically encrypts all newly uploaded objects at rest using AWS-managed keys (SSE-S3 with AES-256). For sensitive or regulated data, we can enable <strong>Server-Side Encryption with AWS Key Management Service (SSE-KMS)</strong>, which provides greater control over encryption keys and auditability. In some cases, <strong>client-side encryption</strong> may be used to encrypt data before it is uploaded to S3.</p><p>Also, Data must be protected in transit. This is achieved by enforcing <strong>HTTPS-only access</strong>. Bucket policies can require secure transport by denying any request that does not use TLS.</p><p>➡️ <strong>Versionning</strong></p><p>To protect against accidental or malicious data loss, S3 provides <strong>versioning</strong>. When versioning is enabled, every change to an object creates a new version instead of overwriting the existing one. This allows recovery from accidental deletions or unwanted modifications.</p><p>➡️<strong>Monitoring</strong></p><p>Visibility and monitoring are critical to maintaining the security and reliability of data stored in Amazon S3. AWS provides several services that work together to give organizations full awareness of who is accessing data, what actions are being performed, and whether the environment remains compliant with security best practices.</p><p><strong>AWS CloudTrail</strong> is responsible for answering key security questions: <em>Who accessed the data? From where? At what time? When?</em></p><p><strong>Amazon CloudWatch</strong> acts as the real-time monitoring and alerting engine. It collects metrics from S3, such as the number of requests, error rates (4xx and 5xx errors), and data transfer activity. CloudWatch detects abnormal behavior in real time and triggers alerts.</p><p><strong>AWS Config</strong> ensures configurations remain secure and compliant</p><h4><strong>2. High Availability in Amazon S3</strong></h4><p>Although the S3 Standard storage class provides 99.99% availability and automatically stores data across multiple Availability Zones (AZs) within a region, this level of availability is sometimes not sufficient for enterprise-scale or global workloads. We can adopt <strong>Content Delivery Networks (CDNs)</strong> and <strong>S3 Cross-Region Replication (CRR)</strong> to address limitations related to performance, geographic reach, and disaster recovery.</p><p>➡️<strong>Content Delivery Networks (CDN)</strong></p><p>Amazon S3 is a regional service. While it is highly available within a region, users located far from that region may experience <strong>higher latency</strong>. To solve this problem, enterprises commonly use <strong>Amazon CloudFront</strong>, a global CDN.</p><p>A CDN caches copies of S3 objects at <strong>edge locations around the world</strong>, allowing users to retrieve content from the nearest geographic location. This <strong>reduces latency</strong>, improves user experience…</p><p>CloudFront acts as a protective shield between users on the internet and the S3 origin, reducing the exposure of S3 resources to external threats. CloudFront it’s then protected against<strong> Distributed Denial of Service (DDoS) attacks</strong>. Because CloudFront is part of the AWS global edge network, and it’s automatically integrating with <strong>AWS Shield Standard (</strong>AWS Shield is a managed security service that protects applications and data hosted on AWS from Distributed Denial of Service (DDoS) attacks.<strong>)</strong></p><p>➡️ <strong>S3 Cross-Region Replication (CRR)</strong></p><p>By default, S3 replicates data across multiple AZs, all copies still reside <strong>within the same AWS region</strong>. In case of critical scenarios such as a large-scale regional outage, natural disaster, or regulatory requirement, this may not be sufficient.</p><p><strong>S3 Cross-Region Replication (CRR)</strong> addresses this risk by automatically copying objects to a <strong>bucket in another AWS region</strong>. This provides <strong>geographic redundancy</strong> and supports disaster recovery strategies. If an entire region becomes unavailable, applications can switch to the replicated bucket in the secondary region, ensuring continued access to data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*BNrZ0OEVaF-PKKamH3uPvw.png" /></figure><h4><strong>3. High Durability in Amazon S3</strong></h4><p>Amazon S3 is engineered for <strong>extremely high durability</strong>, with most storage classes offering <strong>99.999999999% (11 nines)</strong> durability. This means that the probability of losing an object is extremely low. S3 achieves this by storing multiple redundant copies of data across different devices and Availability Zones. Durability can be further enhanced through <strong>versioning and replication</strong>.</p><p>Versioning preserves every object change, making it possible to restore previous versions after accidental deletions or overwrites. When combined with Cross-Region Replication, every object version is also copied to another region, adding an extra layer of protection against regional failures.</p><h3><strong>IV. Best Practices to Apply on S3</strong></h3><p>AWS recommended below best practices for S3 environments:</p><h4><strong>1- Lifecycle management</strong></h4><p>Define S3 Lifecycle rules to automatically transition objects to lower-cost classes or expire them after a defined retention period. For example, you might move logs to Standard-IA after 30 days and then to Glacier after 90 days, finally deleting them after one year. This reduces costs and enforces data-retention policies without manual intervention. (AWS notes that lifecycle configurations apply to both existing and new objects automatically</p><h4>2- <strong>Disaster recovery planning</strong></h4><p>Treat S3 as part of your broader DR strategy. Determine acceptable RTO/RPO for S3 data. Use versioning and multi-region replication or backups accordingly. For instance, enable CRR or AWS Backup for critical buckets so that you can fail over to a DR region. Document and regularly test restoration procedures, ensuring you can recover quickly from data corruption, accidental deletion, or region-level outages.</p><h4>3- <strong>Monitoring and auditing</strong></h4><p>Continuously monitor S3 usage and health. Use AWS CloudWatch metrics to alert on abnormal activity. Set up AWS Config rules to audit bucket settings (for example, rules that flag buckets allowing public read/write). Regularly review AWS CloudTrail logs and S3 access logs for any unusual access or permission changes.</p><h4>4- <strong>Compliance and governance:</strong></h4><p>Enforce encryption (SSE-S3 or SSE-KMS) and secure transport for all buckets. Use S3 Object Lock and MFA Delete on regulatory buckets to prevent tampering. Apply IAM policies and S3 Access Points with strict rules for data access. Finally, use AWS Organizations and S3 Block Public Access settings to centrally enforce security standards across multiple accounts.</p><h3><strong>Conclusion</strong></h3><p>Amazon S3 already offers an extremely durable and available storage platform (11‑nine durability and four‑nine availability by design, but the additional configuration controls and practices above ensure that corporate data remain secure, recoverable, and cost-efficient. By combining strong access policies, encryption, versioning, replication, and monitoring.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e19a0f97afb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing Access in AWS: Concepts, Services, Mechanisms, and Best Practices]]></title>
            <link>https://medium.com/@gwladysgodem/securing-access-in-aws-concepts-services-mechanisms-and-best-practices-ba1a96379a62?source=rss-ebf81671f1c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba1a96379a62</guid>
            <category><![CDATA[aws-securing-access]]></category>
            <category><![CDATA[iam-identity-center]]></category>
            <category><![CDATA[identity-provider]]></category>
            <category><![CDATA[aws-iam]]></category>
            <category><![CDATA[sts-token]]></category>
            <dc:creator><![CDATA[Gwladysgodem]]></dc:creator>
            <pubDate>Fri, 26 Dec 2025 04:23:49 GMT</pubDate>
            <atom:updated>2025-12-26T04:38:08.299Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YLuy26SWoLHdz6tS4t7hOQ.jpeg" /></figure><h3>Introduction</h3><p>Securing access is one of the most critical responsibilities for any AWS customer. While AWS secures the underlying cloud infrastructure, customers are fully responsible for controlling <strong>who can access AWS resources and what they are allowed to do</strong>. This article explores the key AWS identity and access services, core IAM concepts and terminology, the mechanisms AWS provides to secure access, best practices to minimize risk, and a complete real-world scenario that ties everything together.</p><p>We will start with scenario example before defining all the concepts.</p><h3><strong>Scenario Example:</strong></h3><p>A multi‑account company creates an AWS Organization to centralize billing and apply Service Control Policies (SCPs). They enable AWS IAM Identity Center (formerly AWS SSO) in the management account and integrate it with their corporate Active Directory.</p><p>Employees log in using their corporate identity , not IAM users. Their identity exists in Active Directory, and authentication requires MFA (password + one‑time code). When users log in, they authenticate (prove who they are) inside the IdP (the system that manages users and passwords, in this case Microsoft Active Directory) not inside AWS.</p><p>Once authenticated, the user identity is federated into AWS using SAML. AWS trusts the external identity provider instead of creating separate IAM users. This removes the need to manage AWS passwords and reduces security risk.</p><p>IAM Identity Center receives the authenticated identity and checks which permission sets the user or their group has been assigned in each AWS account. A permission set contains IAM policies that define allowed actions . These policies are attached to an IAM role that the user assumes.</p><p>When the user selects an account and role, AWS STS issues temporary security credentials (access key, secret key, and session token). These credentials:</p><ul><li>Expire automatically</li><li>Cannot be reused indefinitely</li><li>Are safer than long‑term access keys</li></ul><p>The employee can now use the AWS Console or CLI. Access is determined entirely by IAM roles and policies. Every request is evaluated according to AWS’s authorization model:</p><ul><li>All requests are denied by default</li><li>An explicit allow is required</li><li>Any explicit deny (IAM policy, resource policy, or SCP) overrides allows</li></ul><p>This model enforces least‑privilege access and reduces the risk of accidental or unauthorized activity.</p><h3><strong>I- Key AWS Identity &amp; Access Services</strong></h3><p>When we talk about securing access in AWS, the first thing to understand is that AWS does not decide <em>who</em> can access your resources for you. AWS gives you tools to control identities and permissions. AWS provides several services to manage identities and control access securely and at scale.</p><p>1️⃣<strong>- IAM (Identity and Access Management):</strong></p><p>is the foundation of access control in AWS. With IAM, you create users (for people), groups (to manage permissions for multiple users at once), and roles (used mainly by applications or services). You then attach policies, which are rules written in JSON, to say exactly which actions are allowed or denied. IAM works with almost every AWS service and supports strong security features like Multi-Factor Authentication (MFA) and temporary credentials.</p><p>2️⃣<strong>- IAM Identity Center (formerly AWS SSO)</strong></p><p>As organizations grow, managing many IAM users in many AWS accounts becomes complex, which is why AWS provides <strong>IAM Identity Center</strong>. Identity Center allows companies to manage access <strong>centrally</strong> and connect AWS to an existing identity system such as <strong>Active Directory</strong> or another identity provider using standard protocols like <strong>SAML or OIDC</strong>. With Identity Center, users log in <strong>once</strong> using their corporate credentials and can then access multiple AWS accounts and applications without creating separate IAM users in each account. Access is granted using <strong>permission sets</strong>, which are collections of IAM policies applied across accounts. This approach improves security because users rely on <strong>temporary credentials</strong>, reduces administrative effort, and makes it easier to add or remove employees.</p><p>3️⃣<strong>- AWS Organizations:</strong></p><p>To manage security at a larger scale, AWS offers <strong>AWS Organizations</strong>, which is used to group multiple AWS accounts under one management structure. Organizations help with centralized billing, but more importantly for security, they allow you to apply <strong>Service Control Policies (SCPs)</strong>. SCPs act as <strong>guardrails</strong>: they do not grant permissions, but they define what is <strong>never allowed</strong>, even if an account administrator tries to permit it.</p><p>4️⃣<strong>- AWS Security Token Service (STS)</strong></p><p>STS issues temporary security credentials when roles are assumed or users federate into AWS. These credentials automatically expire, significantly reducing the risk associated with leaked credentials.</p><p>5️⃣<strong>- CloudTrail:</strong></p><p>Controlling access is not enough, you must also be able to <strong>see and track what happens</strong> in your environment. This is the role of <strong>AWS CloudTrail</strong>. CloudTrail records every important action taken in AWS, including console logins, API calls, and changes to IAM policies. It answers critical questions like <em>who did what, when, and from where</em>.</p><p>Other relevant services include <strong>AWS KMS</strong> (key management for encryption-at-rest), <strong>AWS Certificate Manager</strong> (TLS certs for in-transit encryption), and <strong>AWS Directory Service/Cognito</strong> (for managing user directories). But, the focus is mainly IAM, Identity Center, Organizations, and auditing (CloudTrail).</p><h3><strong>II- IAM Concepts &amp; Terminology</strong></h3><p>1️⃣<strong>- Identity</strong>: In AWS, an <strong>identity</strong> is <em>who</em> is allowed to access the system. Identities are created and managed using IAM, and they include <strong>IAM users, groups, and roles</strong>.</p><p>➡️ An <strong>IAM user</strong> represents a real person and has long-term credentials such as a username, password, and access keys.</p><p>➡️ A <strong>group</strong> is simply a way to organize users and give them the same permissions.</p><p>➡️A <strong>role</strong> is also an identity, but unlike users, it does not belong to one person and does not have permanent credentials.</p><p>When an identity actually makes a request to AWS, it is called a <strong>principal</strong>. A principal can be the root user, an IAM user, an assumed role, or even an AWS service like EC2.</p><p>2️⃣<strong>- Policy</strong>: A <strong>policy</strong> is a document that defines <em>what an identity is allowed or not allowed to do</em>. Policies are written in <strong>JSON</strong> and contain rules that specify actions (like s3:GetObject), resources (like a specific S3 bucket), and conditions.</p><p>There are two main types of policies in AWS.</p><p>➡️ <strong>Identity-based policies</strong> are attached to IAM users, groups, or roles and describe what actions that identity can perform.</p><p>➡️ <strong>Resource-based policies</strong> are attached directly to AWS resources, such as S3 bucket policies, SNS topic policies, or KMS key policies, and they specify <em>which principals</em> are allowed to access the resource.</p><p>Both types work together to control access, and AWS evaluates them every time a request is made.</p><p>3️⃣<strong>- Permissions </strong>: AWS follows a strict and secure permission model. <strong>By default, everything is denied</strong>. This means that if there is no policy allowing an action, the request will fail. When IAM evaluates permission, an <strong>explicit Allow</strong> in a policy grants access, but an <strong>explicit Deny always takes priority</strong>, even if another policy allows the action. This rule applies across all policies, including identity-based policies, resource-based policies, and service control policies. Because of this evaluation logic, a single deny statement can block access across an entire account. This design prevents accidental access and makes security stronger, but it also means policies must be written carefully to avoid unexpected access issues.</p><p>4️⃣<strong>- Credentials</strong>: <strong>Credentials</strong> are the secrets used to prove who you are when accessing AWS. Examples include <strong>passwords</strong> for signing in to the AWS Management Console, <strong>access keys</strong> for using the AWS CLI or SDK, and <strong>temporary credentials</strong> issued by AWS services. Long-term credentials, such as access keys stored in files or code, are risky because if they are leaked, they can be misused indefinitely. AWS strongly recommends avoiding long-term credentials for applications and instead using <strong>IAM roles</strong> or <strong>IAM Identity Center</strong>, which provide <strong>short-lived credentials</strong> that automatically expire. Temporary credentials greatly reduce security risks and align with AWS best practices.</p><p>5️⃣<strong>- MFA (Multi-Factor Authentication)</strong>: <strong>MFA</strong> adds an extra layer of protection to AWS accounts by requiring two forms of verification: something you know (your password) and something you have (a one-time code from a device or app). Even if an attacker steals a password, they cannot access the account without the MFA code</p><p>6️⃣- <strong>IAM Role</strong>: An <strong>IAM role</strong> is an identity designed for <strong>temporary access</strong>. Unlike users, roles do not have usernames, passwords, or access keys stored permanently. Instead, a role is <strong>assumed</strong> by a trusted entity, such as an AWS service, a user from another account, or a federated user. When a role is assumed, AWS uses <strong>STS</strong> to generate temporary credentials that are valid only for a limited time</p><p>7️⃣<strong>- Federated Access</strong>: <strong>Federated access</strong> allows users who exist <strong>outside AWS</strong> to access AWS resources using their existing identities, such as corporate Active Directory accounts or social identity providers like Google. These users are not created as IAM users inside the AWS account. Instead, after authentication using standards like <strong>SAML</strong> or <strong>OpenID Connect</strong>, they are allowed to <strong>assume IAM roles</strong>. AWS then issues temporary credentials for the role. This approach improves security, reduces identity duplication, and simplifies user management. Services like <strong>IAM Identity Center</strong> make federation easier by providing centralized user management and single sign-on across multiple AWS accounts.</p><h3><strong>III- Mechanisms to Secure Access</strong></h3><p>1️⃣<strong>- Authentication</strong>: Verifying <em>who</em> is making a request. In AWS, this could be a root user, an IAM user (with password or access keys), a federated user via SAML/OIDC, or an assumed IAM role. Multi-Factor Authentication (MFA) strengthens authentication by requiring a second factor (code from a hardware or virtual device) on top of passwords.</p><p>2️⃣<strong>- Authorization</strong>: Determining <em>what</em> the authenticated identity is allowed to do. AWS IAM uses policies (JSON documents) to explicitly <strong>allow or deny</strong> actions on resources. In other words, authentication verifies identity, and then IAM evaluates attached policies to decide if that identity is permitted to perform an action on a resource.</p><p>3️⃣<strong>- MFA (Multi-Factor Authentication):</strong> Enforce MFA for all privileged identities (root, IAM admins). This requires users to supply an MFA code (from a hardware or virtual device) in addition to their password.</p><p>4️⃣<strong>- Encryption In Transit and At Rest:</strong> Always use HTTPS/TLS endpoints and services to encrypt data in transit. For data at rest, enable server-side encryption (e.g. S3 SSE, EBS encryption with KMS keys).</p><p>5️⃣<strong>- IAM Roles for Applications and Services:</strong> Never bake AWS keys into applications. Instead, attach an IAM role to your compute resource: for EC2, assign an <strong>Instance Profile</strong> (role) to get temporary creds automatically; for Lambda, assign an execution role; for ECS/EKS, use Task Roles. Roles ensure credentials are automatically rotated and limited in scope.</p><p>6️⃣<strong>- Cross-Account Roles:</strong> To grant access between AWS accounts, create an IAM role in the target account with a trust policy specifying the source account (or specific users) as principals. Users in the source account can then “switch role” or call AssumeRole to obtain temporary access to the target account’s resources.</p><p>7️⃣<strong>- Conditions in IAM Policies: </strong>IAM policy <strong>conditions</strong> allow you to make permissions more restrictive by adding <strong>rules that must be met before access is granted</strong>. Instead of only deciding <em>who</em> can perform an action, conditions let you control <strong>how, when, and from where</strong> that action is allowed.</p><p>8️⃣<strong>- Resource-Based vs. Identity-Based Policies:</strong> Choose appropriately. Use identity-based policies for most user/role permissions. Use resource-based policies when you need cross-account access or service principals (e.g. an S3 bucket policy granting another AWS account or principal access). Remember: when both identity and resource policies exist, IAM evaluates both an explicit deny in either blocks access.</p><h3><strong>IV- Best Practices</strong></h3><p>1️⃣<strong>- Least Privilege:</strong> Always grant the minimum permissions needed. Start with no permissions, then add rights gradually. Regularly audit and tighten permissions. Use AWS IAM Access Analyzer to find overly broad policies.</p><p>2️⃣<strong>- Root User Protection:</strong> The AWS account’s <em>root user</em> has full power. <strong>Do not use it for daily tasks</strong>. Instead, enable MFA on the root user, remove or rotate any root access keys, and only sign in as root to perform a few tasks (like changing account settings). Create an IAM administrator (with “AdministratorAccess” policy) for all management tasks.</p><p>3️⃣<strong>- Strong Password and MFA:</strong> Enforce a strong password policy (length, complexity, expiration) for IAM users. Require MFA for all human users, especially those with privileged roles.</p><p>4️⃣<strong>- Rotate Credentials:</strong> Rotating credentials in AWS is a critical security best practice that reduces the risk of credential compromise by limiting how long access keys remain valid. Long-term IAM access keys should be avoided whenever possible in favor of IAM roles and temporary credentials issued by STS.</p><p>5️⃣<strong>- Use IAM Groups:</strong> Apply permissions to groups rather than individual users. Assign users to groups (e.g. “Developers”, “DBAs”) to simplify management.</p><p>6️⃣<strong>- Enable CloudTrail &amp; Monitoring:</strong> In AWS, securing access is not only about preventing unauthorized actions, but also about <strong>knowing exactly what happens in your environment</strong>. This is why <strong>AWS CloudTrail</strong> is a foundational security service. Enabling CloudTrail in all regions is a core AWS security best practice that ensures every management action and API call is logged and traceable. By integrating CloudTrail with CloudWatch Logs, organizations can monitor activity in near real time, detect suspicious behavior, and trigger automated alerts using SNS.</p><p>7️⃣<strong>- Automate and Validate:</strong> Automating and validating security in AWS means using services like AWS Config to continuously monitor resource configurations and enforce best practices such as blocking public S3 access or requiring MFA for IAM users. By defining security controls through Infrastructure as Code tools like CloudFormation or Terraform, organizations ensure that permissions and configurations are consistent, version-controlled, and reviewed before deployment. This approach minimizes human error, prevents configuration drift, and provides scalable, continuous security aligned with AWS best practices and the Security Pillar.</p><h3>Conclusion</h3><p>Securing access in AWS is not about a single service or setting, but about combining identity services, IAM concepts, authorization mechanisms, automation, and monitoring into a cohesive strategy. By understanding how AWS identity and access services work together and applying best practices consistently, organizations can build secure, scalable, and compliant cloud architectures that meet both operational and certification expectations.</p><h3>Resources</h3><p><a href="https://docs.aws.amazon.com/fr_fr/IAM/latest/UserGuide/id_roles_providers_saml.html">https://docs.aws.amazon.com/fr_fr/IAM/latest/UserGuide/id_roles_providers_saml.html</a></p><p><a href="https://aws.amazon.com/fr/compliance/shared-responsibility-model/#:~:text=between%20the%20customer%20,com">https://aws.amazon.com/fr/compliance/shared-responsibility-model/#:~:text=between%20the%20customer%20,com</a></p><p><a href="https://www.tecracer.com/blog/2021/08/iam-what-happens-when-you-assume-a-role.html">https://www.tecracer.com/blog/2021/08/iam-what-happens-when-you-assume-a-role.html</a></p><p><a href="https://www.paloaltonetworks.com/blog/cloud-security/prismacloud-aws-identity-center/">https://www.paloaltonetworks.com/blog/cloud-security/prismacloud-aws-identity-center/</a></p><p><a href="https://ervinszilagyi.dev/certified-aws-solutions-architect-professional/02-identity/saml.html">https://ervinszilagyi.dev/certified-aws-solutions-architect-professional/02-identity/saml.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba1a96379a62" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lab: Host a Static Website on AWS]]></title>
            <link>https://medium.com/@gwladysgodem/lab-host-a-static-website-on-aws-66bc66ff9686?source=rss-ebf81671f1c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/66bc66ff9686</guid>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[static-website-hosting]]></category>
            <category><![CDATA[cross-region-replication]]></category>
            <dc:creator><![CDATA[Gwladysgodem]]></dc:creator>
            <pubDate>Thu, 24 Jul 2025 12:17:56 GMT</pubDate>
            <atom:updated>2025-07-24T12:17:56.331Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*xsdAwuBLYy1lBobYMwXAVQ.png" /></figure><h3><strong>Lab overview and objectives</strong></h3><p>In this lab, we will use Amazon Simple Storage Service (Amazon S3) to build a static website and apply architectural best practices to protect and manage data. We will explore the following topics step by step:</p><p>🌐 <strong>Host a static website using Amazon S3</strong><br> Learn how to configure your S3 bucket to serve HTML, CSS, and image files to users through a static website endpoint.</p><p>🔐 <strong>Implement one way to protect data in Amazon S3</strong><br> Discover how to enhance data security with access controls, encryption, and versioning.</p><p>💰 <strong>Apply cost optimization in Amazon S3</strong><br> Explore S3 storage classes and lifecycle rules to reduce storage costs while maintaining data availability.</p><h3>1️⃣ What is a Static Website?</h3><p>A static website is made up of pre-built files such as HTML, CSS, JavaScript, and media files (like images or videos) that are delivered directly to the user’s browser exactly as stored. There’s no server-side processing or database interaction at runtime.</p><p>For a static site on Amazon S3, index.html is expected as the default landing page unless you configure something else. Web browser Automatically look for index.html when loading a folder or root path, without its Users may get a 403 or 404 error if no default page is defined.</p><h3>2️⃣ In Which Cases Can a Static Website Help?</h3><p>A <strong>static website</strong> is ideal in situations where the content remains mostly unchanged and doesn’t require server-side processing or database interactions. It’s a cost-effective, fast, and secure option for many common scenarios, such as:</p><ul><li><strong>Blogs and Personal Sites</strong> — Simple articles, posts, and pages that don’t require dynamic content.</li><li><strong>Portfolio or Resume Websites</strong> — Great for showcasing your work or CV with static visuals and descriptions.</li><li><strong>Microsites for Marketing Campaigns</strong> — Temporary or one-time pages promoting products, services, or events.</li><li><strong>Documentation Sites</strong> — Hosting static technical or user documentation for products or APIs.</li><li><strong>Landing Pages</strong> — Quick-to-deploy pages focused on collecting leads or presenting key info.</li></ul><h3>3️⃣ Architectural Design</h3><p>The goal of this lab is to host a <strong>static website</strong> using <strong>Amazon S3</strong>. To achieve this, we will follow a simple and effective architecture that balances <strong>security</strong>, <strong>availability</strong>, <strong>durability</strong> and <strong>cost optimization</strong>. The minimal architecture would look like the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*H174rDiWXJ6TDaGsbnJ3MA.png" /></figure><h3>4️⃣ Implementation</h3><p>We will now go step by step through the implementation.</p><h3>✅<strong> Task 1: Creating an S3 Bucket to Host Your Static Website</strong></h3><p>To start, let’s remind that for static website, your files (like index.html, style.css, images) need to be publicly readable, so that anyone on the internet can access them via the browser.</p><p>By default, <strong>Amazon S3 applies strict security settings</strong></p><ul><li>S3 buckets are <strong>private</strong> for security.</li><li><strong>“Block all public access” is enabled</strong> by default to prevent unintended data exposure.</li><li>ACLs are disabled in most cases, especially if you’re using bucket policies.</li></ul><p><strong>1. Uncheck “Block all public access” because</strong></p><ul><li>This setting <strong>overrides all permissions</strong>, even if you allow public access through a <strong>bucket policy</strong> or <strong>ACL</strong>.</li><li>To serve a static website, you must <strong>allow public read access</strong> to your objects (HTML, images, etc.).</li><li>If “Block all public access” is ON, nothing you configure in policies or ACLs will make the files publicly viewable.</li></ul><p><strong>2- Enable ACLs (Access Control Lists) to allow us create policy on the next step. </strong>Bellow steps are done to create Amazon S3 Bucket:</p><p><em>a- Select S3 in AWS services list</em></p><p><em>b- Create Bucket, make sure you are in your desire region</em></p><p><em>c- Put the bucket name, for instance “mybucket-danlab01”</em></p><p><em>d- Check “ACLs enabled”</em></p><p><em>e- Unchecked “Block</em><strong><em> all public access</em></strong><em>”</em></p><p><em>f- Click on “Create bucket”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*DkyuIndt3zd1OTbewkMsSA.png" /></figure><h3>✅<strong>Task 2: Creating a bucket policy to grant public read access</strong></h3><p><strong>Even after disable </strong>“Block all public access”, the site is still no accessible when using bucket URL in the browser, it’s gives a <strong>403 Forbidden</strong> or <strong>404 Not Found</strong> error.</p><p>By default, all S3 buckets are private, and only users who are explicitly granted access to S3 buckets can access those buckets. So, even if you’ve <strong>disabled the “Block all public access”</strong> setting on your S3 bucket (which <em>allows</em> public access <em>in theory</em>), the bucket <strong>still won’t actually be public</strong> unless you <strong>explicitly tell AWS to allow it</strong>. This can be done using a <strong>bucket policy</strong>.</p><p>To create a bucket policy that grants read-only permission to public anonymous users by using the bucket policy editor we will follow below step:</p><p><em>a- Under </em><strong><em>Buckets</em></strong><em>, choose the name of your bucket.</em></p><p><em>b- Choose </em><strong><em>Permissions</em></strong><em>.</em></p><p><em>c- Under </em><strong><em>Bucket Policy</em></strong><em>, choose </em><strong><em>Edit</em></strong><em>.</em></p><p><em>d- To grant public read access for your website, copy the following bucket policy, and paste it in the </em><strong><em>Bucket policy editor</em></strong><em>.</em></p><p><em>e- In the preceding example bucket policy, </em><strong><em>mybucket-danlab01</em></strong><em>is a placeholder for the bucket name. To use this bucket policy with your own bucket, you must update this name to match your bucket name.</em></p><p><em>f- Choose </em><strong><em>Save changes</em></strong><em>.</em></p><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Sid&quot;: &quot;PublicReadGetObject&quot;,<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Principal&quot;: &quot;*&quot;,<br>            &quot;Action&quot;: [<br>                &quot;s3:GetObject&quot;<br>            ],<br>            &quot;Resource&quot;: [<br>                &quot;arn:aws:s3:::mybucket-danlab01/*&quot;<br>            ]<br>        }<br>    ]<br>}</pre><h3>✅<strong>Task 3: Uploading content to your S3 bucket</strong></h3><p>In this step, you will upload all content files of your static web site in Amazon S3 like below.</p><p><em>a- Under </em><strong><em>Buckets</em></strong><em>, choose the name of your bucket.</em></p><p><em>b- Click on “upload”</em></p><p><em>c- Dag and drop the file of static website</em></p><p><em>d- Click on “upload”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*62lBZDIh_ArI0JYRQ4ebew.png" /></figure><h3>✅<strong>Task4: Enable static website hosting on your bucket</strong></h3><p>Enabling static website hosting turns your S3 bucket into a basic web server that is capable of hosting static websites. Without this feature, your files remain stored but not served with the website.</p><p>When you enable static website hosting:</p><p>· you define the <strong>index document</strong> (e.g., index.html) and an <strong>error document</strong> (e.g., error.html) for better navigation and user experience.</p><p>· AWS creates a <strong>website endpoint URL</strong> (e.g., <a href="http://your-bucket-name.s3-website-region.amazonaws.com/">http://your-bucket-name.s3-website-region.amazonaws.com</a>).</p><p>To enable static website hosting, below step needs to follow:</p><p><em>a- Under </em><strong><em>Buckets</em></strong><em>, choose the name of your bucket.</em></p><p><em>b- Choose “Properties” and scroll down till “Static Website hosting”</em></p><p><em>c- Click on “Edit”</em></p><p><em>d- Select “Enable”</em></p><p><em>e- Set-up the home or default page of the website, her “index.html”</em></p><p><em>f- Set-up the error page, the one that appearing when an error occurs.</em></p><p><em>g- Finish by clicking on “Save changes”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*1O1vPCxF6bPVwlOL7Aljig.png" /></figure><h3>5️⃣<strong>Security configuration</strong></h3><p>Now that our static website is <strong>publicly accessible</strong>, it’s important to ensure it remains <strong>secure</strong> and follows best practices. Let’s keep in mind the <strong>default security configurations</strong> of Amazon S3, which are designed to protect your data from unauthorized access and accidental loss.</p><h4>Amazon S3 Default Security Features:</h4><ul><li>All newly created <strong>buckets and objects are private</strong>, restricting public access unless explicitly allowed.</li><li>S3 applies <strong>encryption at rest</strong> by default, helping protect stored data.</li><li><strong>SSE-S3 (Server-Side Encryption with Amazon S3 Managed Keys) </strong>is the <strong>default encryption method</strong>, automatically encrypting your data using Amazon-managed keys without requiring additional configuration.</li><li>Amazon S3 is built for <strong>extremely high durability</strong>, ensuring your data is not lost over time <strong>(11 nines — 99.999999999%).</strong></li><li><strong>Amazon S3 is High Availability (4 nines — 99.99%), t</strong>he service is designed to keep your data <strong>readily accessible</strong>, minimizing downtime.</li><li>S3 <strong>stores your objects redundantly across multiple Availability Zones</strong> within the selected Region to protect against hardware failures.</li><li>S3 <strong>regularly verifies your data using checksums</strong>, automatically detecting and correcting any corruption.</li></ul><h3>✅<strong>Task 5: Enabling versioning on the S3 bucket</strong></h3><p>Amazon S3 provides a versioning feature to protect objects from accidental overwrites and deletes. You can use versioning to recover from both unintended user actions and application failures.</p><p><em>a-</em> <em>Under Buckets, choose the name of your bucket.</em></p><p><em>b-</em> <em>Choose “Properties” and scroll down till “Bucket Versioning”</em></p><p><em>c-</em> <em>Click on “Edit”</em></p><p><em>d-</em> <em>Select “Enable”</em></p><p><em>e-</em> <em>Finish by clicking on “Save changes”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*jsMrMHoMFvwUXaM97DzPZw.png" /></figure><p>At this stage, you can verify if you have access to your static web site through a web browser.</p><p><em>a- Under Buckets, choose the name of your bucket.</em></p><p><em>b- Choose “Properties” and scroll down till “Static Website hosting”</em></p><p><em>c- Select under “Bucket website endpoint” the website endpoint URL.</em></p><p><em>d- Open a browser and paste the URL on research bar. Your static website should appear normally.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*gF2XqVaYop0r5sLsFgfJhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*6cpvKOnulBYTCnewE2JS6w.png" /></figure><h3>✅<strong>Task 6: Enabling cross-Region replication</strong></h3><p>Amazon S3 automatically stores your objects redundantly across multiple Availability Zones (AZs) within the same Region. This provides high durability and availability within that Region. If there’s a Region-wide outage (e.g., due to natural disaster or large-scale failure), your data could be temporarily inaccessible.</p><p><strong>Cross-Region Replication (CRR) provides geographic redundancy</strong> to help you recover faster from regional outages by having a copy in another Region.</p><p>To enable CRR we need to create another bucket (Target bucket) in a region different from our bucket source. We will complete the process with below steps:</p><p>a- create a second bucket (destination bucket) In a different Region than the Region for the source bucket and enable versioning on it (myawsbucketinohioregioncrr).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*AnlD1ce2TzlcDI7vG48zEg.png" /></figure><p>b- in our target bucket, we will enable CRR and create replication rule with below constraints:</p><p>· <strong>Create and use AWS Identity and Access Management (IAM) role</strong> <strong>CafeRole</strong> , that gives to Amazon S3 the permissions to read objects from the source bucket and replicate them to the destination bucket.</p><pre>{<br> &quot;Version&quot;: &quot;2012-10-17&quot;,<br> &quot;Statement&quot;: [<br>  {<br>   &quot;Action&quot;: [<br>    &quot;s3:ListBucket&quot;,<br>    &quot;s3:ReplicateObject&quot;,<br>    &quot;s3:ReplicateDelete&quot;,<br>    &quot;s3:ReplicateTags&quot;,<br>    &quot;s3:Get*&quot;<br>   ],<br>   &quot;Resource&quot;: [<br>    &quot;*&quot;<br>   ],<br>   &quot;Effect&quot;: &quot;Allow&quot;<br>  }<br> ]<br>}</pre><p>· <strong>Replicate the entire source bucket.</strong></p><p><em>a- Under Buckets, choose the name of your source bucket.</em></p><p><em>b- Choose “Management”</em></p><p><em>c- Go to “Replication rules” and click on “Create replication rule”</em></p><p><em>d- Add the rule name and check “Apply to all objects in the bucket”</em></p><p><em>e- Filled Destination part with S3 bucket destination</em></p><p><em>f- Add IAM role create previously that allow us to copy data from source bucket to target bucket in different region.</em></p><p><em>g- Click on “Create Rule”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*BwbOC8JcF7RiuH8k2iTSUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*x8EHZbdnWjfVdcDeOwujCA.png" /></figure><h3>6️⃣<strong>Cost optimizing</strong></h3><p>Now that you have enabled versioning, you realize that the size of the S3 bucket will continue to grow as you upload new objects and versions. To save costs, you decide to implement a strategy to retire some of those older versions.</p><h3>✅<strong>Task 7: Setting lifecycle policies</strong></h3><p>lifecycle policy is a set of rules that automatically move older versions of the objects in your source bucket to a different storage class (S3 Standard-Infrequent Access (S3 Standard-IA) for instance in this case).</p><p>By using lifecycle policies, you can cycle data at regular intervals among different Amazon S3 storage types. This cycling reduces your overall cost because you pay less for data as it becomes less important over time. In addition to being able to set lifecycle rules per object, you can also set lifecycle rules per bucket.</p><p>We will Configure two rules in the website bucket’s lifecycle.</p><p><em>1- In one rule, move previous versions of all source bucket objects to S3 Standard-IA after 30 days.</em></p><p><em>2- In the other rule, delete previous versions of the objects after 365 days.</em></p><p><em>To complete operation, we will:</em></p><p><em>a- Under Buckets, choose the name of your bucket.</em></p><p><em>b- Choose “Management” and scroll down till “Lifecycle configuration”</em></p><p><em>c- Click on “Create lifecycle rule”</em></p><p><em>d- Check the “Apply to all objects in the bucket”</em></p><p><em>e- Click on “Create Rule”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*fG8Oop_1c09k7Ukna5LUrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*YBSFc25nTR1iHUCuJh5VQA.png" /></figure><h3>8️⃣<strong>Conclusion</strong></h3><p>Every architecture is unique and depends on various factors such as business needs, budget constraints, and target users. The real challenge lies in identifying which AWS services are the most suitable and cost-effective for the application’s specific requirements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66bc66ff9686" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Différente Etape D’une Cyberattaque — Cas Pratique: CVE-2019–0708]]></title>
            <link>https://medium.com/@gwladysgodem/diff%C3%A9rente-etape-dune-cyberattaque-cas-pratique-cve-2019-0708-e63f685f0f74?source=rss-ebf81671f1c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e63f685f0f74</guid>
            <category><![CDATA[nessus]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[nmap]]></category>
            <dc:creator><![CDATA[Gwladysgodem]]></dc:creator>
            <pubDate>Sat, 15 Mar 2025 23:54:34 GMT</pubDate>
            <atom:updated>2025-03-15T23:54:34.188Z</atom:updated>
            <content:encoded><![CDATA[<h3>Différente Etape D’une Cyberattaque — Cas Pratique: <strong>CVE-2019–0708</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P2OiwbEY3-I-wVSzW8E8hw.png" /></figure><p>Dans cet article, nous allons traiter des différentes étapes constituant le processus de réalisation d’une cyberattaque en prenant un exemple pratique d’une machine TryHackMe présentant la vulnérabilité <strong>Microsoft RDP RCE (CVE-2019–0708) (BlueKeep) (uncredentialed check)</strong>. Rappelons-le, l’objectif ici est de comprendre la façon dont un système peut être compromis, afin de mieux pouvoir s’en prémunir.</p><p>Le travail demandé consiste à prendre le contrôle de la machine. Nous allons effectuez les différentes étapes d’une cyberattaque pour prendre contrôle de celle-ci.</p><h3><strong>1-</strong> <strong>Scan de la machine à l’aide de NMAP</strong></h3><p>Nous allons commencer par effectuer un <strong>scan de port</strong> à l’aide de la commande <strong>NMAP</strong> dans le but de :</p><p>✅ <strong>Identifier</strong> les services actifs sur un réseau 🌐<br> ✅ <strong>Identifier</strong> les ports ouverts 🔓<br> ✅ <strong>Repérer</strong> les failles potentielles ⚠️</p><p>Après avoir lancé la machine <strong>“AttacktheBox”</strong> 🖥️ sur <strong>TryHackMe</strong>, on exécute la commande suivante :</p><pre>Nmap -A -sV -p- 10.10.41.59</pre><p>Nmap a scanné <strong>tous les 65 535 ports</strong> et a trouvé <strong>9 ports ouverts</strong> :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*ku9jC7Ga71nbGn3mS8HzAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*0szkFosLEL8inQynYjbaGg.png" /></figure><p>D’après le scan, les potentielles vulnérabilités sont :</p><ul><li>SMB (445, 139) → Microsoft Windows netbios-ssn, Windows 7 Professional</li><li>RDP (3389) → SSL/MS-WBT-SERVER</li><li>MSRPC (135, 49152–49160) → Microsoft Windows RPC</li><li>NetBIOS (139) → Microsoft Windows NetBIOS-SSN</li></ul><h3><strong>2-</strong> <strong>Recherche des vulnérabilités en utilisant Nessus.</strong></h3><p>Nous allons utiliser Nessus, dans le but de pour déterminer les vulnérabilités connues sur une cible et obtenir les numéros <strong>CVE</strong> associés</p><p><strong>A-</strong> <strong>Installation de Nessus dans la machine virtuelle Kali Locale</strong></p><p>Il est impossible d’utiliser Nessus sur les machines TryHackme, pour des raisons de capacités. Nessus sera donc installé dans la machine virtuelle locale Kali.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*VfIItQ87RPCOnBByxKW5Gw.png" /></figure><p><strong>B-</strong> <strong>Configuration de communication de TryHackMe avec la machine Kali virtuelle installé en local.</strong></p><p>Ceci se fera à l’aide du NPN téléchargé sur TryHackMe et installé dans la machine Kali.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*BeQ8hrmNKscbNTq-SRvq_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*nfrLu-54e-eYzROdDCU-xA.png" /></figure><p><strong>C-</strong> <strong>Installation et Lancement du scan avec Nessus</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*02T9dkZe5IhgBeYW_wu8eQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*csu26mQWV0-w6I_sPEsnaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*AV9yht4jIQyD4g6VhqX6pA.png" /></figure><p><strong>D-</strong> <strong>Résultats du scan</strong></p><p>Les résultats du scan montrent la vulnérabilité <strong>Microsoft RDP RCE (CVE-2019–0708) (BlueKeep) (uncredentialed check)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OPYxYonoh-r02fTUQJyZaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lrLRe_EZ3u3xoZBoMctV_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w088_EY1w23ZEDv2PL69jQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*3MkSHJAsGkDMKnl1OETGpQ.png" /></figure><h3><strong>3- Exploitation de la vulnérabilité avec Métasploit</strong></h3><p><strong>A- Lancement de Métasploit sur la machine TryHackMe</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*1SVm5Ddhue2ly_4sw9rcBA.png" /></figure><p><strong>B-</strong> <strong>Recherche de la documentation pour la vulnérabilité RCE (CVE-2019–0708) (BlueKeep)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*SWO-6EJS217jEh_JXdY2Tg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*TbSt8cTtIa1ANLTzu55X1g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*s9qloDcodFJSkcWWgZCvcg.png" /></figure><ul><li><strong>Commande show option</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*C3Hk3AGRIKFbpWPjwmXhTA.png" /></figure><ul><li><strong>Commande info</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*-jwsdatrJWWNgZK1eESd2A.png" /></figure><p><strong><em>C-</em></strong> <strong>Vérification si la cible est vulnérable</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*zDdaZHkT0sCQTxEGsU-hZg.png" /></figure><p><strong>D-</strong> <strong>Configuration de l’adresse cible</strong></p><pre>set RHOSTS 10.10.18.62  # Adresse IP de la cible<br><br>set LHOST 10.10.41.100  # Adresse IP de l’attaquant la machine TryHackme est déjà configuré</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*QdbaakJZAYjuknSsvJRpUw.png" /></figure><p><strong>E-</strong> <strong>Commande Show Target</strong></p><p>L’exploit supporte plusieurs versions de Windows 7 et Windows Server 2008 R2 (x64), y compris différentes plateformes de virtualisation. Nous allons lancer l’attaque sur la cible2, car la commande show option, montre que l’option correspondante a la vulnérabilité trouvée.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*kcIIfMcOMR7vDnRVOenhVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*KfcYZOLIN_AtGyBdrvajhw.png" /></figure><p><strong>F-</strong> <strong>Lancement de l’exploitation</strong></p><p>Après avoir lancé l’exploitation,<strong> l’attaque a réussi</strong>. Métasploit ouvre une session <strong>Meterpreter</strong> sur la machine cible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*mKFDQpdoCRVJkk_QYOoMpw.png" /></figure><h3><strong>4- Période post exploitation</strong></h3><p><strong>Prise en main du Shell de la machine cible à l’aide de la commande Shell.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*FYR9wfao15zrTm6VpEB_OQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*2N2XFHvMdP_jIyETZWxyDw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*zfi77nsxEW_-I4lpmy__FA.png" /></figure><p>Il est <strong>essentiel</strong> de maîtriser les différentes étapes d’une <strong>cyberattaque</strong> 🕵️‍♂️ afin de mieux comprendre les <strong>techniques utilisées par les attaquants</strong> et ainsi renforcer la <strong>sécurité</strong> 🔐 des systèmes !</p><p>#cybersecurity #nessus #TryHackMe #cve #bluekeep</p><p><a href="https://medium.com/@gwladysgodem/configuration-de-kali-linux-pour-ex%C3%A9cution-des-room-tryhackme-18adcab7d9c0">Configuration de Kali linux Pour Exécution des Room TryHackMe</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e63f685f0f74" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>