diff --git a/README.md b/README.md index ec3e18c..2ef188f 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ These AWS Lambda function are designed to retrieve security alerts from a MongoD - Fetch alerts by ID or other specified attributes. - Serverless approach leveraging AWS Lambda. - Integration with MongoDB. +- Supported Arabic & English languages ## Deployment Status ✅ The Lambda function has been successfully deployed and is operational. @@ -58,8 +59,6 @@ Invoke the function via AWS SDK or an API Gateway endpoint with appropriate quer ![System Diagram](./assets/systemDiagram.png) - - ## Testing You can test endpoints by using the following http.http file 😉 @@ -156,6 +155,52 @@ $ curl "https://sas5g5ymqb.execute-api.us-east-1.amazonaws.com/default/get_alert } ``` +`https://sas5g5ymqb.execute-api.us-east-1.amazonaws.com/default/get_alert?id=6555366754572009bcd38905&lang=ar` + +```json +{ + "alert": { + "_id": { + "$oid": "6555366754572009bcd38905" + }, + "title": "تنبيه Adobe", + "severity": "عالٍ جدًا", + "logo": "https://cert.gov.sa/media/Adobe_rG1RtZq.png", + "alert_url": "https://cert.gov.sa/ar/security-warnings/adobe-alert1114/", + "details": { + "warning_date": "14 نوفمبر, 2023", + "severity_level": "● عالٍ جدًا", + "warning_number": "2023-5898", + "target_sector": "الكل", + "p_1": "تاريخ التحذير", + "p_2": "مستوى الخطورة", + "p_3": "رقم التحذير", + "p_4": "القطاع المستهدف", + "p_5": "14 نوفمبر, 2023", + "p_6": "● عالٍ جدًا", + "p_7": "2023-5898", + "p_8": "الكل", + "link_9": "https://helpx.adobe.com/security/products/coldfusion/apsb23-52.html", + "p_10": "", + "p_11": "الوصف:", + "p_12": "أصدرت Adobe عدّة تحديثات لمعالجة عدد من الثغرات في منتجاتها.", + "p_13": "الاجراءات الوقائية:", + "p_14": "يوصي المركز بتحديث النسخ المتأثرة حيث أصدرت Adobe توضيحًا لهذه التحديثات:", + "i_1": "·https://helpx.adobe.com/security/products/coldfusion/apsb23-52.html", + "i_2": "·https://helpx.adobe.com/security/products/robohelp-server/apsb23-53.html", + "i_3": "·https://helpx.adobe.com/security/products/acrobat/apsb23-54.html", + "i_4": "·https://helpx.adobe.com/security/products/photoshop/apsb23-56.html", + "i_5": "·https://helpx.adobe.com/security/products/framemaker/apsb23-58.html", + "i_6": "·https://helpx.adobe.com/security/products/incopy/apsb23-60.html", + "i_7": "·https://helpx.adobe.com/security/products/media-encoder/apsb23-63.html", + "i_8": "·https://helpx.adobe.com/security/products/audition/apsb23-64.html", + "i_9": "·https://helpx.adobe.com/security/products/premiere_pro/apsb23-65.html", + "i_10": "·https://helpx.adobe.com/security/products/after_effects/apsb23-66.html" + } + } +} +``` + ### Get Alert (Query Parameters) ⚠️ `https://sas5g5ymqb.execute-api.us-east-1.amazonaws.com/default/get_alert?title=Google%20Chrome%20Alert` @@ -475,6 +520,341 @@ $ curl "https://sas5g5ymqb.execute-api.us-east-1.amazonaws.com/default/get_alert } ``` +## Supported Arabic Language + +`https://1tozt5y6hl.execute-api.us-east-1.amazonaws.com/default/get_alerts?page=1&limit=10&lang=ar` + +```json +{ + "status": "success", + "message": "Alerts retrieved successfully", + "total_alerts": 2145, + "alerts": [ + { + "_id": { + "$oid": "6555366754572009bcd38905" + }, + "title": "تنبيه Adobe", + "severity": "عالٍ جدًا", + "logo": "https://cert.gov.sa/media/Adobe_rG1RtZq.png", + "alert_url": "https://cert.gov.sa/ar/security-warnings/adobe-alert1114/", + "details": { + "warning_date": "14 نوفمبر, 2023", + "severity_level": "● عالٍ جدًا", + "warning_number": "2023-5898", + "target_sector": "الكل", + "p_1": "تاريخ التحذير", + "p_2": "مستوى الخطورة", + "p_3": "رقم التحذير", + "p_4": "القطاع المستهدف", + "p_5": "14 نوفمبر, 2023", + "p_6": "● عالٍ جدًا", + "p_7": "2023-5898", + "p_8": "الكل", + "link_9": "https://helpx.adobe.com/security/products/coldfusion/apsb23-52.html", + "p_10": "", + "p_11": "الوصف:", + "p_12": "أصدرت Adobe عدّة تحديثات لمعالجة عدد من الثغرات في منتجاتها.", + "p_13": "الاجراءات الوقائية:", + "p_14": "يوصي المركز بتحديث النسخ المتأثرة حيث أصدرت Adobe توضيحًا لهذه التحديثات:", + "i_1": "·https://helpx.adobe.com/security/products/coldfusion/apsb23-52.html", + "i_2": "·https://helpx.adobe.com/security/products/robohelp-server/apsb23-53.html", + "i_3": "·https://helpx.adobe.com/security/products/acrobat/apsb23-54.html", + "i_4": "·https://helpx.adobe.com/security/products/photoshop/apsb23-56.html", + "i_5": "·https://helpx.adobe.com/security/products/framemaker/apsb23-58.html", + "i_6": "·https://helpx.adobe.com/security/products/incopy/apsb23-60.html", + "i_7": "·https://helpx.adobe.com/security/products/media-encoder/apsb23-63.html", + "i_8": "·https://helpx.adobe.com/security/products/audition/apsb23-64.html", + "i_9": "·https://helpx.adobe.com/security/products/premiere_pro/apsb23-65.html", + "i_10": "·https://helpx.adobe.com/security/products/after_effects/apsb23-66.html" + } + }, + { + "_id": { + "$oid": "6555366754572009bcd38906" + }, + "title": "تنبيه Intel®", + "severity": "عالٍ جدًا", + "logo": "https://cert.gov.sa/media/intel_qZA4El6.png", + "alert_url": "https://cert.gov.sa/ar/security-warnings/intel-alert1114/", + "details": { + "warning_date": "14 نوفمبر, 2023", + "severity_level": "● عالٍ جدًا", + "warning_number": "2023-5897", + "target_sector": "الكل", + "p_1": "تاريخ التحذير", + "p_2": "مستوى الخطورة", + "p_3": "رقم التحذير", + "p_4": "القطاع المستهدف", + "p_5": "14 نوفمبر, 2023", + "p_6": "● عالٍ جدًا", + "p_7": "2023-5897", + "p_8": "الكل", + "link_9": "https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00719.html", + "p_10": "", + "p_11": "الوصف:", + "p_12": "أصدرت Intel® عدًة تحديثات لمعالجة عددٍ من الثغرات في منتجاتها.", + "p_13": "الاجراءات الوقائية:", + "p_14": "يوصي المركز بتحديث المنتجات المتأثرة، حيث أصدرت Intel® توضيحاً لهذه التحديثات عبر الروابط أدناه:", + "i_1": "https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00719.html", + "i_2": "https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00841.html", + "i_3": "https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00861.html", + "i_4": "https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00900.html", + "i_5": "https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00902.html", + "i_6": "https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00908.html", + "i_7": "https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00944.html", + "i_8": "https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00945.html", + "i_9": "https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00950.html", + "i_10": "https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00963.html", + "i_11": "https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00968.html" + } + }, + { + "_id": { + "$oid": "6555366754572009bcd38907" + }, + "title": "تنبيه Microsoft", + "severity": "عالٍ جدًا", + "logo": "https://cert.gov.sa/media/Microsoft_h3pg4gG.jpg", + "alert_url": "https://cert.gov.sa/ar/security-warnings/microsoft-alert1114/", + "details": { + "warning_date": "14 نوفمبر, 2023", + "severity_level": "● عالٍ جدًا", + "warning_number": "2023-5896", + "target_sector": "الكل", + "p_1": "تاريخ التحذير", + "p_2": "مستوى الخطورة", + "p_3": "رقم التحذير", + "p_4": "القطاع المستهدف", + "p_5": "14 نوفمبر, 2023", + "p_6": "● عالٍ جدًا", + "p_7": "2023-5896", + "p_8": "الكل", + "link_9": "https://msrc.microsoft.com/update-guide/releaseNote/2023-Nov", + "p_10": "", + "p_11": "لوصف:", + "p_12": "أصدرت Microsoft عدّة تحديثات لمعالجة عددٍ من الثغرات في منتجاتها.", + "p_13": "الاجراءات الوقائية:", + "p_14": "يوصي المركز بتحديث المنتجات المتأثرة، حيث أصدرت Microsoft توضيحًا لهذه التحديثات:", + "i_1": "https://msrc.microsoft.com/update-guide/releaseNote/2023-Nov" + } + }, + { + "_id": { + "$oid": "6555366754572009bcd38908" + }, + "title": "تنبيه SAP", + "severity": "عالٍ جدًا", + "logo": "https://cert.gov.sa/media/SAP_bUJsLvQ.png", + "alert_url": "https://cert.gov.sa/ar/security-warnings/sap-alert1114/", + "details": { + "warning_date": "14 نوفمبر, 2023", + "severity_level": "● عالٍ جدًا", + "warning_number": "2023-5895", + "target_sector": "الكل", + "p_1": "تاريخ التحذير", + "p_2": "مستوى الخطورة", + "p_3": "رقم التحذير", + "p_4": "القطاع المستهدف", + "p_5": "14 نوفمبر, 2023", + "p_6": "● عالٍ جدًا", + "p_7": "2023-5895", + "p_8": "الكل", + "link_9": "https://sap.com/documents/2022/02/fa865ea4-167e-0010-bca6-c68f7e60039b.html/", + "p_10": "", + "p_11": "الوصف:", + "p_12": "أصدرت SAP عدّة تحديثات لمعالجة عددٍ من الثغرات في منتجاتها.", + "p_13": "الاجراءات الوقائية:", + "p_14": "يوصي المركز بتحديث المنتجات المتأثرة، حيث أصدرت SAP توضيحًا لهذه التحديثات:", + "i_1": "https://sap.com/documents/2022/02/fa865ea4-167e-0010-bca6-c68f7e60039b.html/" + } + }, + { + "_id": { + "$oid": "6555366754572009bcd38909" + }, + "title": "تنبيه Zoom", + "severity": "عالي", + "logo": "https://cert.gov.sa/media/zoom_mBjqsUe.png", + "alert_url": "https://cert.gov.sa/ar/security-warnings/zoom-alert1114/", + "details": { + "warning_date": "14 نوفمبر, 2023", + "severity_level": "● عالي", + "warning_number": "2023-5894", + "target_sector": "الكل", + "p_1": "تاريخ التحذير", + "p_2": "مستوى الخطورة", + "p_3": "رقم التحذير", + "p_4": "القطاع المستهدف", + "p_5": "14 نوفمبر, 2023", + "p_6": "● عالي", + "p_7": "2023-5894", + "p_8": "الكل", + "link_9": "https://explore.zoom.us/en/trust/security/security-bulletin/", + "p_10": "", + "p_11": "الوصف:", + "p_12": "أصدرت Zoom عدّة تحديثات لمعالجة عددٍ من الثغرات في منتجاتها.", + "p_13": "الاجراءات الوقائية:", + "p_14": "يوصي المركز بتحديث المنتجات المتأثرة، حيث أصدرت Zoom توضيحًا لهذه التحديثات:", + "i_1": "https://explore.zoom.us/en/trust/security/security-bulletin/" + } + }, + { + "_id": { + "$oid": "6555366854572009bcd3890a" + }, + "title": "Foxitتنبيه", + "severity": "عالي", + "logo": "https://cert.gov.sa/media/FOX_IT_Tk8lS6n.png", + "alert_url": "https://cert.gov.sa/ar/security-warnings/alert-foxit/", + "details": { + "warning_date": "14 نوفمبر, 2023", + "severity_level": "● عالي", + "warning_number": "2023-5893", + "target_sector": "الكل", + "p_1": "تاريخ التحذير", + "p_2": "مستوى الخطورة", + "p_3": "رقم التحذير", + "p_4": "القطاع المستهدف", + "p_5": "14 نوفمبر, 2023", + "p_6": "● عالي", + "p_7": "2023-5893", + "p_8": "الكل", + "p_9": "أصدرت Foxit تحديثاً لمعالجة عدّة ثغرات في منتجاتها.الاجراءات الوقائية:يوصي المركز بتحديث المنتجات المتأثرة، حيث أصدرت Foxit توضيحًا لهذه التحديثات:https://www.foxit.com/support/security-bulletins.html", + "p_10": "", + "p_11": "أصدرت Foxit تحديثاً لمعالجة عدّة ثغرات في منتجاتها.", + "p_12": "الاجراءات الوقائية:", + "p_13": "يوصي المركز بتحديث المنتجات المتأثرة، حيث أصدرت Foxit توضيحًا لهذه التحديثات:", + "i_1": "https://www.foxit.com/support/security-bulletins.html" + } + }, + { + "_id": { + "$oid": "6555366854572009bcd3890b" + }, + "title": "Schneider Electric ...", + "severity": "عالي", + "logo": "https://cert.gov.sa/media/Schneider_Electric_3b8xZU4.jpg", + "alert_url": "https://cert.gov.sa/ar/security-warnings/11-14-2023/", + "details": { + "warning_date": "14 نوفمبر, 2023", + "severity_level": "● عالي", + "warning_number": "2023-5892", + "target_sector": "الكل", + "p_1": "تاريخ التحذير", + "p_2": "مستوى الخطورة", + "p_3": "رقم التحذير", + "p_4": "القطاع المستهدف", + "p_5": "14 نوفمبر, 2023", + "p_6": "● عالي", + "p_7": "2023-5892", + "p_8": "الكل", + "p_9": "أصدرت Schneider Electric عدة تحديثات لمعالجة عدد من الثغرات في منتجاتها.الاجراءات الوقائية:يوصي المركز بتحديث النسخ المتأثرة حيث أصدرت Schneider Electric توضيحًا لهذه التحديثات:https://download.schneider-electric.com/files?p_Doc_Ref=SEVD-2023-318-02&p_enDocType=Security+and+Safety+Notice&p_File_Name=SEVD-2023-318-02.pdfhttps://download.schneider-electric.com/files?p_Doc_Ref=SEVD-2023-318-01&p_enDocType=Security+and+Safety+Notice&p_File_Name=SEVD-2023-318-01.pdf", + "p_10": "", + "p_11": "", + "p_12": "أصدرت Schneider Electric عدة تحديثات لمعالجة عدد من الثغرات في منتجاتها.", + "p_13": "الاجراءات الوقائية:", + "p_14": "يوصي المركز بتحديث النسخ المتأثرة حيث أصدرت Schneider Electric توضيحًا لهذه التحديثات:", + "i_1": "https://download.schneider-electric.com/files?p_Doc_Ref=SEVD-2023-318-02&p_enDocType=Security+and+Safety+Notice&p_File_Name=SEVD-2023-318-02.pdf", + "i_2": "https://download.schneider-electric.com/files?p_Doc_Ref=SEVD-2023-318-01&p_enDocType=Security+and+Safety+Notice&p_File_Name=SEVD-2023-318-01.pdf" + } + }, + { + "_id": { + "$oid": "6555366854572009bcd3890c" + }, + "title": "النشرة الأسبوعية لل...", + "severity": "عالٍ جدًا", + "logo": "https://cert.gov.sa/media/non_XcxHHds.jpg", + "alert_url": "https://cert.gov.sa/ar/security-warnings/weekly-vulnerabilities-summary-29-october-4-november/", + "details": { + "warning_date": "12 نوفمبر, 2023", + "severity_level": "● عالٍ جدًا", + "warning_number": "2023-5891", + "target_sector": "الكل", + "p_1": "تاريخ التحذير", + "p_2": "مستوى الخطورة", + "p_3": "رقم التحذير", + "p_4": "القطاع المستهدف", + "p_5": "12 نوفمبر, 2023", + "p_6": "● عالٍ جدًا", + "p_7": "2023-5891", + "p_8": "الكل", + "link_9": "/documents/137/Weekly_Vulnerabilities_Summary_29_October_4_November.pdf", + "p_10": "الوصف:", + "p_11": "نشارككم النشرة الأسبوعية للثغرات المسجلة من قبل the National Institute of Standards and Technology (NIST) National Vulnerability Database (NVD) للأسبوع من 29 اكتوبر إلى 4 نوفمبر، ويتم تصنيف هذه الثغرات باستخدام معيار Common Vulnerability Scoring System (CVSS) حيث يتم تصنيف الثغرات بناء على التالي:", + "i_1": "عالي جدًا: النتيجة الأساسية لـ CVSS 9.0-10.0", + "i_2": "عالي: النتيجة الأساسية لـ CVSS 7.0-8.9", + "i_3": "متوسط: النتيجة الأساسية لـ CVSS 4.0-6.9", + "i_4": "منخفض: النتيجة الأساسية لـ CVSS 0.0-3.9", + "link_12": "/documents/137/Weekly_Vulnerabilities_Summary_29_October_4_November.pdf", + "p_13": "تقدم تفاصيل الثغرات كما تم نشرها من قبل NIST’s NVD. وإذ تبقى مسؤولية الجهة أو الشخص قائمة للتأكد من تطبيق التوصيات المناسبة." + } + }, + { + "_id": { + "$oid": "6555366854572009bcd3890d" + }, + "title": "تنبيه Foxit", + "severity": "عالي", + "logo": "https://cert.gov.sa/media/FOX_IT_cAD4gnL.png", + "alert_url": "https://cert.gov.sa/ar/security-warnings/foxit-alert1111/", + "details": { + "warning_date": "11 نوفمبر, 2023", + "severity_level": "● عالي", + "warning_number": "2023-5890", + "target_sector": "الكل", + "p_1": "تاريخ التحذير", + "p_2": "مستوى الخطورة", + "p_3": "رقم التحذير", + "p_4": "القطاع المستهدف", + "p_5": "11 نوفمبر, 2023", + "p_6": "● عالي", + "p_7": "2023-5890", + "p_8": "الكل", + "link_9": "https://www.foxit.com/support/security-bulletins.html", + "p_10": "", + "p_11": "الوصف:", + "p_12": "أصدرت Foxit تحديثاً لمعالجة ثغرة في منتجاتها.", + "p_13": "الاجراءات الوقائية:", + "p_14": "يوصي المركز بتحديث المنتجات المتأثرة، حيث أصدرت Foxit توضيحًا لهذا التحديث:", + "i_1": "https://www.foxit.com/support/security-bulletins.html" + } + }, + { + "_id": { + "$oid": "655536ce54572009bcd38910" + }, + "title": "Google Chrome تنبيه", + "severity": "عالي", + "logo": "https://cert.gov.sa/media/Chrome_oF8imzn.png", + "alert_url": "https://cert.gov.sa/ar/security-warnings/google-chrome-alert-2023-11-15/", + "details": { + "warning_date": "15 نوفمبر, 2023", + "severity_level": "● عالي", + "warning_number": "2023-5901", + "target_sector": "الكل", + "p_1": "تاريخ التحذير", + "p_2": "مستوى الخطورة", + "p_3": "رقم التحذير", + "p_4": "القطاع المستهدف", + "p_5": "15 نوفمبر, 2023", + "p_6": "● عالي", + "p_7": "2023-5901", + "p_8": "الكل", + "strong_9": "الوصف:", + "p_10": "أصدرت Google تحديثاً لمعالجة عددٍ من الثغرات في منتجات Chrome.", + "strong_11": "الاجراءات الوقائية:", + "p_12": "يوصي المركز بتحديث المنتجات المتأثرة، حيث أصدرت Google توضيحًا لهذه التحديثات عبر الروابط أدناه:", + "i_1": "https://chromereleases.googleblog.com/2023/11/stable-channel-update-for-desktop_14.html", + "i_2": "https://chromereleases.googleblog.com/2023/11/stable-channel-update-for.html" + } + } + ], + "next_page": "https://1tozt5y6hl.execute-api.us-east-1.amazonaws.com/default/get_alerts?page=2&limit=10&lang=ar" +} +``` + ## License 📄 Licensed under the MIT License.