<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[پارس جوم ::  انجمن های تخصصی جوملا - امنیت در سرور و سرورهای مجازی]]></title>
		<link>https://forums.parsjoom.ir/</link>
		<description><![CDATA[پارس جوم ::  انجمن های تخصصی جوملا - https://forums.parsjoom.ir]]></description>
		<pubDate>Wed, 24 Jun 2026 20:19:46 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[ذخیره سازی اطلاعات در فضای ابری]]></title>
			<link>https://forums.parsjoom.ir/thread-21543.html</link>
			<pubDate>Tue, 23 Jul 2019 11:20:00 +0000</pubDate>
			<guid isPermaLink="false">https://forums.parsjoom.ir/thread-21543.html</guid>
			<description><![CDATA[ذخیره سازی اطلاعات در فضای ابری <br />
یافتن فضای کافی برای ذخیره ی حجم انبوه اطلاعات در کامپیوتر ، چالش مهمی برای کاربران کامپیوتر محسوب می شود. برخی بر روی دیسکهای هارد بزرگتر سرمایه گذاری می کنند .<br />
<br />
برخی از حافظه های جانبی مانند CD استفاده می کنند. برخی از کاربران بخت برگشته نیز ممکن است تمام فایلهای باارزش قدیمی خود را پاک کنند تا بتوانند فضای کافی برای ذخیره ی فایلهای جدید داشته باشند. برخی نیز گزینه ی اعتماد به یک ترند در حال رشد ، یعنی ذخیره سازی در سرور ابری و سرور مجازی، را انتخاب می کنند.<br />
<br />
 <br />
<br />
با آنکه با شنیدن نام ذخیره سازی ابری ممکن است مسائلی مربوط به جبهه های هوایی و طوفان و ... به ذهن بیاید،اما در واقع ذخیره سازی ابری به معنی یک سیستم ذخیره ی خارجی است که توسط یک شخص ثالث اداره و نگه داری می شود. در این روش ، شما به جای آنکه اطلاعات خود را بر روی هارد کامپیوتر خود و یا یک حافظه جانبی ذخیره کنید ، آن را در یک database جداگانه ذخیره می کنید. و ارتباط بین کامپیوتر شما و این database از طریق اینترنت برقرار می شود.<br />
<br />
 <br />
<br />
ذخیره سازی ابری به لحاظ ظاهری چند مزیت نسبت به روش ذخیره سازی سنتی اطلاعات دارد. به عنوان مثال، اگسیستم ذخیره سازی ابری به صدها سرور متکی است . از آنجا که گاهی کامپیوترها به سرویس و یا تعمیر نیاز دارند ، باید اطلاعات بر روی چند دستگاه مختلف ذخیره شوند. به این کار ' تکرار اطلاعات' یا (redundancy) می گویند. بدون ' تکرار اطلاعات ' ، سیستم ذخیره ابری نمی تواند به کاربران تضمین دهد که هرگاه بخواهند به اطلاعات خود دسترسی داشته باشند. اغلب سیستمها اطلاعات را بر روی سرورها و هاست های مختفی که هر کدام منبع انرژی متفاوتی دارند ، ذخیره می کنند. بدین ترتیب حتی در صورت قطع برق یک سرور ، کاربران می توانند به اطلاعات خود دسترسی داشته باشند.ر اطلاعات خود را در سرور ابری و سرور مجازی ذخیره کنید، می توانید از هر نقطه ای که اتصال اینترنت در اختیار داشته باشید ، به آن اطلاعات دسترسی پیدا کنید. برای ذخیره سازی و بازیابی اطلاعات خود نیازی به همراه داشتن ابزار ، حافظه ی جانبی و یا استفاده از همان کامپیوتر اصلی خود ندارید. در صورت استفاده از یک سیستم ذخیره سازی مناسب، حتی می توانید امکان دسترسی دیگران را به این اطلاعات فراهم کنید و بدین ترتیب می توانید یک پروژه ی شخصی را به یک کار مشارکتی تبدیل کنید.<br />
<br />
 <br />
<br />
بنابراین ذخیره سازی ابری مفید و مناسب است و انعطاف پذیری شما را افزایش می دهد . اما این سیستم چگونه کار می کند؟<br />
<br />
 <br />
<br />
مبانی اولیه ذخیره سازی ابری<br />
صدها مدل مختلف سیستم ذخیره سازی ابری وجود دارد. بعضی از این انواع مخصوص ذخیره ی یک مورد خاص ، مثلاً عکسهای دیجیتال یا پیامهای ایمیل هستند. در انواع دیگر می توان اشکال مختلف اطلاعات دیجیتال را ذخیره کرد. بعضی از سیستمهای ذخیره ی ابری کوچکند ، اما برخی چنان بزرگند که دستگاههای فیزیکی آنها فضای یک انبار را به طور کامل پر می کنند. به فضایی که در حقیقت محل انجام ذخیره سازی ابری است ، data center می گویند.<br />
<br />
 <br />
<br />
در ساده ترین سطح، سیستم ذخیره سازی ابری به یک سرور با دسترسی به اینترنت نیاز دارد. کاربر ( مثلاً کاربری که مشترک سیستم ذخیره سازی ابری شده است) یک کپی از فایلهای مورد نظر را از طریق اینترنت برای سرور می فرستد و این سرور اطلاعات این فایلها را ضبط می کند. هر وقت که کاربر قصد بازیابی آن اطلاعات را داشته باشد، از طریق یک رابط تحت وب به سرور دسترسی پیدا می کند. پس از دسترسی، یا سرور اطلاعات را مجدداً برای کاربر ارسال می کند و یا اینکه به کاربر اجازه می دهد که اطلاعات خود را بر روی همان سرور تغییر بدهد.<br />
<br />
 <br />
<br />
سیستم ذخیره سازی ابری به صدها سرور متکی است . از آنجا که گاهی کامپیوترها به سرویس و یا تعمیر نیاز دارند ، باید اطلاعات بر روی چند دستگاه مختلف ذخیره شوند. به این کار ' تکرار اطلاعات' یا (redundancy) می گویند. بدون ' تکرار اطلاعات ' ، سیستم ذخیره ابری نمی تواند به کاربران تضمین دهد که هرگاه بخواهند به اطلاعات خود دسترسی داشته باشند. اغلب سیستمها اطلاعات را بر روی سرورها و هاست های مختفی که هر کدام منبع انرژی متفاوتی دارند ، ذخیره می کنند. بدین ترتیب حتی در صورت قطع برق یک سرور ، کاربران می توانند به اطلاعات خود دسترسی داشته باشند.<br />
<br />
 <br />
<br />
کاربران سیستم ذخیره سازی ابری نگران اتمام فضای ذخیره سازی نیستند. آنها از سیستم ذخیره سازی ابری به عنوان راهی برای ایجاد نسخه پشتیبان اطلاعات استفاده می کنند. اگر اتفاقی برای سیستم کامپیوتری کاربر بیفتد ، اطلاعات در یک فضای خارجی حفظ می شوند.<br />
<br />
 <br />
<br />
نمونه هایی از ذخیره سازی ابری<br />
صدها عرضه کننده ی سیستم ذخیره ابری در دنیای وب وجود دارد و به نظر می رسد که این تعداد هر روز بیشتر می شود. به نظر می رسد که هر روزه هم تعداد شرکتهای رقیب برای عرضه ی خدمات ذخیره سازی ابری و هم حجم ذخیره سازی ارائه شده از سوی هر شرکت ، افزایش می یابد.<br />
<br />
 <br />
<br />
ممکن است با نام تعدادی از شرکتهای عرضه کننده ی سرویس ذخیره سازی ابری آشنا باشد ، اما ندانید که این شرکتها این سرویس را نیز ارائه می کنند. اسامی تعدادی از شرکتهای مشهور که برخی از اشکال سرویس ذخیره سازی ابری را ارائه می کنند، عبارتند از :<br />
<br />
 <br />
<br />
• Google Docsامکان آپلود فایلهای doc ، صفحه گسترده و اسلاید را در سرور گوگل به کاربر می دهد. همچنین کاربر حتی می تواند اسناد را منتشر کند ، به گونه ای که دیگران می توانند آنها را بخوانند و حتی ویرایش کنند ، که به این معنی است که Google Docs یک نمونه از رایانش ابری نیز هست.<br />
<br />
• سرویسهای ایمیل مانند Gmail ، Hotmail و Yahoo!Mail پیامهای ایمیل را در سرورهای خود ذخیره می کنند . کاربران از طریق کامپیوترهای مختلف و یا هر وسیله ی دیگری که به اینترنت وصل می شود ، می توانند به ایمیل خود دسترسی داشته باشند.<br />
<br />
• سایتهایی همچون ّFlicker و Picasa میلیونها عکس دیجیتال را در خود ذخیره دارند. کاربران می توانند با آپلود مستقیم عکسهای خود در سرور ابری و سرور مجازی خدمات رسان این سایتها ، به صورت آنلاین برای خود آلبوم دیجیتال درست کنند.<br />
<br />
• YouTube هاست میلیونها فایل ویدیوئی آپلود شده توسط کاربران است.<br />
<br />
• شرکتهای هاستینگ مانند StartLogic ،HosrMonster و GoDaddy فایلها و اطلاعات لازم برای وب سایت های کاربران را ذخیره می کنند.<br />
<br />
• سایتهای شبکه های اجتماعی نظیر Facebook و MySpace به کاربران اجازه می دهند که تصاویر و یا سایر محتواها را در این شبکه ها قرار دهند. تمام این محتواها در سرورهای سایتهای مربوطه ذخیره می شوند.<br />
<br />
• سرویسهایی مانند Xdrive ، MediaMax و StrongSpace فضای لازم برای ذخیره ی انواع داده های دیجیتال را در اختیار کاربران قرار می دهند.<br />
<br />
 <br />
<br />
برخی از سرویسهایی که به آنها اشاره شد ، رایگان هستند. گروهی برای ذخیره ی یک حجم مشخص مبلغ ثابتی دریافت می کنند و تعدادی نیز بر حسب میزان ذخیره ی مورد نیاز کاربران هزینه های بیشتری دریافت می کنند. در مجموع ،با ورود شرکتهای بیشتر به این صنعت ، قیمت ذخیره سازی آنلاین کاهش یافته است. حتی تعدادی از شرکتهایی که در قبال ذخیره ی اطلاعات دیجیتال مبلغی دریافت می کردند، حداقل مقدار مشخصی از این کار را به صورت رایگان انجام می دهند .<br />
<br />
 <br />
<br />
آیا میزان تقاضای ذخیره سازی اطلاعات موجود در بازار بقدری هست که تمام این شرکتها به این بازار وارد شوند؟ برخی تصور می کنند اگر فضایی برای ذخیره سازی وجود داشته باشد ، کسی آن را پر خواهد کرد. برخی دیگر نیز تصور می کردند که این صنعت برخلاف آنچه که در انفجار حباب dot-com در سال 2000 رخ داد ، محکوم به شکست است. باید صبرکرد و دید.<br />
<br />
 <br />
<br />
مشکلات ذخیره سازی ابری<br />
بزرگترین نگرانیهای موجود در ذخیره سازی ابری ، پایایی و امنیت هستند . بعید است که کاربران بدون داشتن تضمین برای آنکه هر زمان که بخواهند بتوانند به اطلاعاتشان دسترسی داشته باشند و کس دیگری هم به اطلاعات آنها دسترسی نداشته باشد ، فایلها و اطلاعات خود را در اختیار یک شرکت دیگر بگذارند.<br />
<br />
 <br />
<br />
اغلب سیستمها برای حفظ امنیت داده ها از ترکیب چند تکنولوژی با هم استفاده می کنند. تکنولوژیهایی مانند :<br />
<br />
• رمزگذاری ، که به معنی استفاده از یک الگوریتم پیچیده برای رمزگذاری اطلاعات است. برای رمزگشایی فایلهای رمزگذاری شده ، کاربر نباز به داشتن کلید رمز دارد. با اینکه امکان کرک اطلاعات رمزگذاری شده وجود دارد ، اما بیشتر هکرها قدرت پردازشی لازم برای شکستن رمز فایلهای رمزگذاری شده را ندارند.<br />
<br />
• استفاده از فرایند تأیید هویت ، که نیاز به ساختن نام کاربری و کلمه عبور دارد .<br />
<br />
• استفاه از شیوه های صدور مجوز ، که در آن مشتری لیستی از کسانی که اجازه ی دسترسی به اطلاعات ذخیره شده در سرور ابری را دارند ، تهیه می کند. بسیاری از شرکتها چند لایه سطح دسترسی مجاز دارند. به عنوان مثال، ممکن است یک کارمند جزء دسترسی بسیار محدودی داشته باشد ، اما مسئول منابع انسانی شرکت دسترسی گسترده ای به فایلهای ذخیره شده داشته باشد.<br />
<br />
 <br />
<br />
حتی با وجود این اقدامات امنیتی ، خیلی ها در مورد آسیب پذیری اطلاعاتی که در یک مرکز ذخیره ی جدا از سازمان خود ذخیره می کنند ، نگرانند. همیشه این امکان وجود دارد که یک هکر راهی برای دستیابی به این اطلاعات پیدا کند. این امکان هم وجود دارد که هکرها دستگاهی را که این اطلاعات بر روی آن ذخیره شده اند ، را به سرقت ببرند. ممکن است یک کارمند ناراضی با استفاده از رمز کاربری مجاز خود ، اطلاعات را تغییر دهد یا نابود کند. شرکتهای ذخیره سازی ابری برای به حداقل رساندن احتمال سرقت و یا تخریب اطلاعات ، مبالغ هنگفتی را صرف انجام اقدامات امنیتی می کنند.<br />
<br />
 <br />
<br />
نگرانی دیگری که در مورد ذخیره سازی ابری وجود دارد ، پایایی ، درست به اندازه ی مسئله ی امنیت ، اهمیت دارد . یک سیستم ذخیره سازی ابری بی ثبات ، می تواند مشکل ساز شود. هیچ کس تمایلی به ذخیره ی اطلاعات خود در سیستمی که احتمال نابودی آن می رود ، ندارد ؛ همچنین هیچ کس به شرکتی که ثبات مالی ندارد، اعتماد نمی کند. با اینکه بیشتر سیستمهای ذخیره سازی ابری سعی کرده اند که با استفاده از تکنیک redundancy ، این مشکل را برطرف کنند ، اما هنوز هم این احتمال وجود دارد که کل سیستم از کار بیفتد و کاربر هیچ راهی برای دسترسی به اطلاعات ذخیره شده نداشته باشد.<br />
<br />
 <br />
<br />
شهرت و وجهه ی عمومی سیستمهای ذخیره سازی ابری می تواند سبب نابودی یا حیات آنها شود. هدف اصلی هر شرکت آن است که امن ترین و مطمئن ترین سرویسهای ممکن را به مشتریان خود ارائه کند. اگر شرکتی نتواند این انتظارات اولیه ی مشتریان را برآورده کند ، شانس چندانی برای ادامه ی کار نخواهد داشت.<br />
<br />
دیدن لینک ها برای شما امکان پذیر نیست. لطفا <a href="https://forums.parsjoom.ir/member.php?action=register">ثبت نام کنید</a> یا <a href="https://forums.parsjoom.ir/member.php?action=login">وارد حساب خود شوید</a> تا بتوانید لینک ها را ببینید.<br />
]]></description>
			<content:encoded><![CDATA[ذخیره سازی اطلاعات در فضای ابری <br />
یافتن فضای کافی برای ذخیره ی حجم انبوه اطلاعات در کامپیوتر ، چالش مهمی برای کاربران کامپیوتر محسوب می شود. برخی بر روی دیسکهای هارد بزرگتر سرمایه گذاری می کنند .<br />
<br />
برخی از حافظه های جانبی مانند CD استفاده می کنند. برخی از کاربران بخت برگشته نیز ممکن است تمام فایلهای باارزش قدیمی خود را پاک کنند تا بتوانند فضای کافی برای ذخیره ی فایلهای جدید داشته باشند. برخی نیز گزینه ی اعتماد به یک ترند در حال رشد ، یعنی ذخیره سازی در سرور ابری و سرور مجازی، را انتخاب می کنند.<br />
<br />
 <br />
<br />
با آنکه با شنیدن نام ذخیره سازی ابری ممکن است مسائلی مربوط به جبهه های هوایی و طوفان و ... به ذهن بیاید،اما در واقع ذخیره سازی ابری به معنی یک سیستم ذخیره ی خارجی است که توسط یک شخص ثالث اداره و نگه داری می شود. در این روش ، شما به جای آنکه اطلاعات خود را بر روی هارد کامپیوتر خود و یا یک حافظه جانبی ذخیره کنید ، آن را در یک database جداگانه ذخیره می کنید. و ارتباط بین کامپیوتر شما و این database از طریق اینترنت برقرار می شود.<br />
<br />
 <br />
<br />
ذخیره سازی ابری به لحاظ ظاهری چند مزیت نسبت به روش ذخیره سازی سنتی اطلاعات دارد. به عنوان مثال، اگسیستم ذخیره سازی ابری به صدها سرور متکی است . از آنجا که گاهی کامپیوترها به سرویس و یا تعمیر نیاز دارند ، باید اطلاعات بر روی چند دستگاه مختلف ذخیره شوند. به این کار ' تکرار اطلاعات' یا (redundancy) می گویند. بدون ' تکرار اطلاعات ' ، سیستم ذخیره ابری نمی تواند به کاربران تضمین دهد که هرگاه بخواهند به اطلاعات خود دسترسی داشته باشند. اغلب سیستمها اطلاعات را بر روی سرورها و هاست های مختفی که هر کدام منبع انرژی متفاوتی دارند ، ذخیره می کنند. بدین ترتیب حتی در صورت قطع برق یک سرور ، کاربران می توانند به اطلاعات خود دسترسی داشته باشند.ر اطلاعات خود را در سرور ابری و سرور مجازی ذخیره کنید، می توانید از هر نقطه ای که اتصال اینترنت در اختیار داشته باشید ، به آن اطلاعات دسترسی پیدا کنید. برای ذخیره سازی و بازیابی اطلاعات خود نیازی به همراه داشتن ابزار ، حافظه ی جانبی و یا استفاده از همان کامپیوتر اصلی خود ندارید. در صورت استفاده از یک سیستم ذخیره سازی مناسب، حتی می توانید امکان دسترسی دیگران را به این اطلاعات فراهم کنید و بدین ترتیب می توانید یک پروژه ی شخصی را به یک کار مشارکتی تبدیل کنید.<br />
<br />
 <br />
<br />
بنابراین ذخیره سازی ابری مفید و مناسب است و انعطاف پذیری شما را افزایش می دهد . اما این سیستم چگونه کار می کند؟<br />
<br />
 <br />
<br />
مبانی اولیه ذخیره سازی ابری<br />
صدها مدل مختلف سیستم ذخیره سازی ابری وجود دارد. بعضی از این انواع مخصوص ذخیره ی یک مورد خاص ، مثلاً عکسهای دیجیتال یا پیامهای ایمیل هستند. در انواع دیگر می توان اشکال مختلف اطلاعات دیجیتال را ذخیره کرد. بعضی از سیستمهای ذخیره ی ابری کوچکند ، اما برخی چنان بزرگند که دستگاههای فیزیکی آنها فضای یک انبار را به طور کامل پر می کنند. به فضایی که در حقیقت محل انجام ذخیره سازی ابری است ، data center می گویند.<br />
<br />
 <br />
<br />
در ساده ترین سطح، سیستم ذخیره سازی ابری به یک سرور با دسترسی به اینترنت نیاز دارد. کاربر ( مثلاً کاربری که مشترک سیستم ذخیره سازی ابری شده است) یک کپی از فایلهای مورد نظر را از طریق اینترنت برای سرور می فرستد و این سرور اطلاعات این فایلها را ضبط می کند. هر وقت که کاربر قصد بازیابی آن اطلاعات را داشته باشد، از طریق یک رابط تحت وب به سرور دسترسی پیدا می کند. پس از دسترسی، یا سرور اطلاعات را مجدداً برای کاربر ارسال می کند و یا اینکه به کاربر اجازه می دهد که اطلاعات خود را بر روی همان سرور تغییر بدهد.<br />
<br />
 <br />
<br />
سیستم ذخیره سازی ابری به صدها سرور متکی است . از آنجا که گاهی کامپیوترها به سرویس و یا تعمیر نیاز دارند ، باید اطلاعات بر روی چند دستگاه مختلف ذخیره شوند. به این کار ' تکرار اطلاعات' یا (redundancy) می گویند. بدون ' تکرار اطلاعات ' ، سیستم ذخیره ابری نمی تواند به کاربران تضمین دهد که هرگاه بخواهند به اطلاعات خود دسترسی داشته باشند. اغلب سیستمها اطلاعات را بر روی سرورها و هاست های مختفی که هر کدام منبع انرژی متفاوتی دارند ، ذخیره می کنند. بدین ترتیب حتی در صورت قطع برق یک سرور ، کاربران می توانند به اطلاعات خود دسترسی داشته باشند.<br />
<br />
 <br />
<br />
کاربران سیستم ذخیره سازی ابری نگران اتمام فضای ذخیره سازی نیستند. آنها از سیستم ذخیره سازی ابری به عنوان راهی برای ایجاد نسخه پشتیبان اطلاعات استفاده می کنند. اگر اتفاقی برای سیستم کامپیوتری کاربر بیفتد ، اطلاعات در یک فضای خارجی حفظ می شوند.<br />
<br />
 <br />
<br />
نمونه هایی از ذخیره سازی ابری<br />
صدها عرضه کننده ی سیستم ذخیره ابری در دنیای وب وجود دارد و به نظر می رسد که این تعداد هر روز بیشتر می شود. به نظر می رسد که هر روزه هم تعداد شرکتهای رقیب برای عرضه ی خدمات ذخیره سازی ابری و هم حجم ذخیره سازی ارائه شده از سوی هر شرکت ، افزایش می یابد.<br />
<br />
 <br />
<br />
ممکن است با نام تعدادی از شرکتهای عرضه کننده ی سرویس ذخیره سازی ابری آشنا باشد ، اما ندانید که این شرکتها این سرویس را نیز ارائه می کنند. اسامی تعدادی از شرکتهای مشهور که برخی از اشکال سرویس ذخیره سازی ابری را ارائه می کنند، عبارتند از :<br />
<br />
 <br />
<br />
• Google Docsامکان آپلود فایلهای doc ، صفحه گسترده و اسلاید را در سرور گوگل به کاربر می دهد. همچنین کاربر حتی می تواند اسناد را منتشر کند ، به گونه ای که دیگران می توانند آنها را بخوانند و حتی ویرایش کنند ، که به این معنی است که Google Docs یک نمونه از رایانش ابری نیز هست.<br />
<br />
• سرویسهای ایمیل مانند Gmail ، Hotmail و Yahoo!Mail پیامهای ایمیل را در سرورهای خود ذخیره می کنند . کاربران از طریق کامپیوترهای مختلف و یا هر وسیله ی دیگری که به اینترنت وصل می شود ، می توانند به ایمیل خود دسترسی داشته باشند.<br />
<br />
• سایتهایی همچون ّFlicker و Picasa میلیونها عکس دیجیتال را در خود ذخیره دارند. کاربران می توانند با آپلود مستقیم عکسهای خود در سرور ابری و سرور مجازی خدمات رسان این سایتها ، به صورت آنلاین برای خود آلبوم دیجیتال درست کنند.<br />
<br />
• YouTube هاست میلیونها فایل ویدیوئی آپلود شده توسط کاربران است.<br />
<br />
• شرکتهای هاستینگ مانند StartLogic ،HosrMonster و GoDaddy فایلها و اطلاعات لازم برای وب سایت های کاربران را ذخیره می کنند.<br />
<br />
• سایتهای شبکه های اجتماعی نظیر Facebook و MySpace به کاربران اجازه می دهند که تصاویر و یا سایر محتواها را در این شبکه ها قرار دهند. تمام این محتواها در سرورهای سایتهای مربوطه ذخیره می شوند.<br />
<br />
• سرویسهایی مانند Xdrive ، MediaMax و StrongSpace فضای لازم برای ذخیره ی انواع داده های دیجیتال را در اختیار کاربران قرار می دهند.<br />
<br />
 <br />
<br />
برخی از سرویسهایی که به آنها اشاره شد ، رایگان هستند. گروهی برای ذخیره ی یک حجم مشخص مبلغ ثابتی دریافت می کنند و تعدادی نیز بر حسب میزان ذخیره ی مورد نیاز کاربران هزینه های بیشتری دریافت می کنند. در مجموع ،با ورود شرکتهای بیشتر به این صنعت ، قیمت ذخیره سازی آنلاین کاهش یافته است. حتی تعدادی از شرکتهایی که در قبال ذخیره ی اطلاعات دیجیتال مبلغی دریافت می کردند، حداقل مقدار مشخصی از این کار را به صورت رایگان انجام می دهند .<br />
<br />
 <br />
<br />
آیا میزان تقاضای ذخیره سازی اطلاعات موجود در بازار بقدری هست که تمام این شرکتها به این بازار وارد شوند؟ برخی تصور می کنند اگر فضایی برای ذخیره سازی وجود داشته باشد ، کسی آن را پر خواهد کرد. برخی دیگر نیز تصور می کردند که این صنعت برخلاف آنچه که در انفجار حباب dot-com در سال 2000 رخ داد ، محکوم به شکست است. باید صبرکرد و دید.<br />
<br />
 <br />
<br />
مشکلات ذخیره سازی ابری<br />
بزرگترین نگرانیهای موجود در ذخیره سازی ابری ، پایایی و امنیت هستند . بعید است که کاربران بدون داشتن تضمین برای آنکه هر زمان که بخواهند بتوانند به اطلاعاتشان دسترسی داشته باشند و کس دیگری هم به اطلاعات آنها دسترسی نداشته باشد ، فایلها و اطلاعات خود را در اختیار یک شرکت دیگر بگذارند.<br />
<br />
 <br />
<br />
اغلب سیستمها برای حفظ امنیت داده ها از ترکیب چند تکنولوژی با هم استفاده می کنند. تکنولوژیهایی مانند :<br />
<br />
• رمزگذاری ، که به معنی استفاده از یک الگوریتم پیچیده برای رمزگذاری اطلاعات است. برای رمزگشایی فایلهای رمزگذاری شده ، کاربر نباز به داشتن کلید رمز دارد. با اینکه امکان کرک اطلاعات رمزگذاری شده وجود دارد ، اما بیشتر هکرها قدرت پردازشی لازم برای شکستن رمز فایلهای رمزگذاری شده را ندارند.<br />
<br />
• استفاده از فرایند تأیید هویت ، که نیاز به ساختن نام کاربری و کلمه عبور دارد .<br />
<br />
• استفاه از شیوه های صدور مجوز ، که در آن مشتری لیستی از کسانی که اجازه ی دسترسی به اطلاعات ذخیره شده در سرور ابری را دارند ، تهیه می کند. بسیاری از شرکتها چند لایه سطح دسترسی مجاز دارند. به عنوان مثال، ممکن است یک کارمند جزء دسترسی بسیار محدودی داشته باشد ، اما مسئول منابع انسانی شرکت دسترسی گسترده ای به فایلهای ذخیره شده داشته باشد.<br />
<br />
 <br />
<br />
حتی با وجود این اقدامات امنیتی ، خیلی ها در مورد آسیب پذیری اطلاعاتی که در یک مرکز ذخیره ی جدا از سازمان خود ذخیره می کنند ، نگرانند. همیشه این امکان وجود دارد که یک هکر راهی برای دستیابی به این اطلاعات پیدا کند. این امکان هم وجود دارد که هکرها دستگاهی را که این اطلاعات بر روی آن ذخیره شده اند ، را به سرقت ببرند. ممکن است یک کارمند ناراضی با استفاده از رمز کاربری مجاز خود ، اطلاعات را تغییر دهد یا نابود کند. شرکتهای ذخیره سازی ابری برای به حداقل رساندن احتمال سرقت و یا تخریب اطلاعات ، مبالغ هنگفتی را صرف انجام اقدامات امنیتی می کنند.<br />
<br />
 <br />
<br />
نگرانی دیگری که در مورد ذخیره سازی ابری وجود دارد ، پایایی ، درست به اندازه ی مسئله ی امنیت ، اهمیت دارد . یک سیستم ذخیره سازی ابری بی ثبات ، می تواند مشکل ساز شود. هیچ کس تمایلی به ذخیره ی اطلاعات خود در سیستمی که احتمال نابودی آن می رود ، ندارد ؛ همچنین هیچ کس به شرکتی که ثبات مالی ندارد، اعتماد نمی کند. با اینکه بیشتر سیستمهای ذخیره سازی ابری سعی کرده اند که با استفاده از تکنیک redundancy ، این مشکل را برطرف کنند ، اما هنوز هم این احتمال وجود دارد که کل سیستم از کار بیفتد و کاربر هیچ راهی برای دسترسی به اطلاعات ذخیره شده نداشته باشد.<br />
<br />
 <br />
<br />
شهرت و وجهه ی عمومی سیستمهای ذخیره سازی ابری می تواند سبب نابودی یا حیات آنها شود. هدف اصلی هر شرکت آن است که امن ترین و مطمئن ترین سرویسهای ممکن را به مشتریان خود ارائه کند. اگر شرکتی نتواند این انتظارات اولیه ی مشتریان را برآورده کند ، شانس چندانی برای ادامه ی کار نخواهد داشت.<br />
<br />
دیدن لینک ها برای شما امکان پذیر نیست. لطفا <a href="https://forums.parsjoom.ir/member.php?action=register">ثبت نام کنید</a> یا <a href="https://forums.parsjoom.ir/member.php?action=login">وارد حساب خود شوید</a> تا بتوانید لینک ها را ببینید.<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[مسدود کردن آی پی های کشورهای مختلف توسط فایروال سرور CSF]]></title>
			<link>https://forums.parsjoom.ir/thread-20419.html</link>
			<pubDate>Fri, 16 Dec 2016 11:38:50 +0000</pubDate>
			<guid isPermaLink="false">https://forums.parsjoom.ir/thread-20419.html</guid>
			<description><![CDATA[درود<br />
برای جلوگیری از دسترسی آی پی های برخی کشورها به سرور خود میتوانید با استفاده از فایروال csf و وارد کردن کد اختصاصی اون کشورها در تنظیمات فایروال تمامی رنج آی پی های اون کشور را مسدود کنید.<br />
عنوان این مطلب Country Codes required for CC_DENY/ALLOW in CSF Firewall می باشد و در قسمت CC_DENY/ALLOW در تنظیمات فایروال میتوانید کد کشورهای مورد نظر برای مسدود سازی را وارد کنید و با کاما جدا کنید.<br />
از منو کشویی در تنظیمات فایروال Country Code Lists and Settings را انتخاب کنید و در فیلد CC_DENY مانند زیر وارد کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>AD,AM,AZ,BA,BY,MD,RU,SI,TM,UA,KZ,KG</code></div></div>
<br />
<div style="text-align: center;"><img src="http://forums.parsjoom.ir/imgup/1/1481887956_1_3febe41fcc.png" border="0" alt="[تصویر:  1481887956_1_3febe41fcc.png]" /></div>
<br />
در ادامه لیست کد کشورها را نیز میتوانید مشاهده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>Country Codes required for CC_DENY/ALLOW in CSF Firewall<br />
To block or allow website access to certain countries, following country codes are used in the CC_DENY or CC_ALLOW option in CSf Firewall.<br />
<br />
AD Andorra<br />
AE United Arab Emirates<br />
AF Afghanistan<br />
AG Antigua and Barbuda<br />
AI Anguilla<br />
AL Albania<br />
AM Armenia<br />
AN Netherlands Antilles<br />
AO Angola<br />
AQ Antarctica<br />
AR Argentina<br />
AS American Samoa<br />
AT Austria<br />
AU Australia<br />
AW Aruba<br />
AZ Azerbaijan<br />
BA Bosnia and Herzegovina<br />
BB Barbados<br />
BD Bangladesh<br />
BE Belgium<br />
BF Burkina Faso<br />
BG Bulgaria<br />
BH Bahrain<br />
BI Burundi<br />
BJ Benin<br />
BM Bermuda<br />
BN Brunei Darussalam<br />
BO Bolivia<br />
BR Brazil<br />
BS Bahamas<br />
BT Bhutan<br />
BV Bouvet Island<br />
BW Botswana<br />
BY Belarus<br />
BZ Belize<br />
CA Canada<br />
CC Cocos (Keeling) Islands<br />
CF Central African Republic<br />
CG Congo<br />
CH Switzerland<br />
CI Cote D'Ivoire (Ivory Coast)<br />
CK Cook Islands<br />
CL Chile<br />
CM Cameroon<br />
CN China<br />
CO Colombia<br />
CR Costa Rica<br />
CS Czechoslovakia (former)<br />
CU Cuba<br />
CV Cape Verde<br />
CX Christmas Island<br />
CY Cyprus<br />
CZ Czech Republic<br />
DE Germany<br />
DJ Djibouti<br />
DK Denmark<br />
DM Dominica<br />
DO Dominican Republic<br />
DZ Algeria<br />
EC Ecuador<br />
EE Estonia<br />
EG Egypt<br />
EH Western Sahara<br />
ER Eritrea<br />
ES Spain<br />
ET Ethiopia<br />
FI Finland<br />
FJ Fiji<br />
FK Falkland Islands (Malvinas)<br />
FM Micronesia<br />
FO Faroe Islands<br />
FR France<br />
FX France, Metropolitan<br />
GA Gabon<br />
GB Great Britain (UK)<br />
GD Grenada<br />
GE Georgia<br />
GF French Guiana<br />
GH Ghana<br />
GI Gibraltar<br />
GL Greenland<br />
GM Gambia<br />
GN Guinea<br />
GP Guadeloupe<br />
GQ Equatorial Guinea<br />
GR Greece<br />
GS S. Georgia and S. Sandwich Isls.<br />
GT Guatemala<br />
GU Guam<br />
GW Guinea-Bissau<br />
GY Guyana<br />
HK Hong Kong<br />
HM Heard and McDonald Islands<br />
HN Honduras<br />
HR Croatia (Hrvatska)<br />
HT Haiti<br />
HU Hungary<br />
ID Indonesia<br />
IE Ireland<br />
IL Israel<br />
IN India<br />
IO British Indian Ocean Territory<br />
IQ Iraq<br />
IR Iran<br />
IS Iceland<br />
IT Italy<br />
JM Jamaica<br />
JO Jordan<br />
JP Japan<br />
KE Kenya<br />
KG Kyrgyzstan<br />
KH Cambodia<br />
KI Kiribati<br />
KM Comoros<br />
KN Saint Kitts and Nevis<br />
KP Korea (North)<br />
KR Korea (South)<br />
KW Kuwait<br />
KY Cayman Islands<br />
KZ Kazakhstan<br />
LA Laos<br />
LB Lebanon<br />
LC Saint Lucia<br />
LI Liechtenstein<br />
LK Sri Lanka<br />
LR Liberia<br />
LS Lesotho<br />
LT Lithuania<br />
LU Luxembourg<br />
LV Latvia<br />
LY Libya<br />
MA Morocco<br />
MC Monaco<br />
MD Moldova<br />
MG Madagascar<br />
MH Marshall Islands<br />
MK Macedonia<br />
ML Mali<br />
MM Myanmar<br />
MN Mongolia<br />
MO Macau<br />
MP Northern Mariana Islands<br />
MQ Martinique<br />
MR Mauritania<br />
MS Montserrat<br />
MT Malta<br />
MU Mauritius<br />
MV Maldives<br />
MW Malawi<br />
MX Mexico<br />
MY Malaysia<br />
MZ Mozambique<br />
NA Namibia<br />
NC New Caledonia<br />
NE Niger<br />
NF Norfolk Island<br />
NG Nigeria<br />
NI Nicaragua<br />
NL Netherlands<br />
NO Norway<br />
NP Nepal<br />
NR Nauru<br />
NT Neutral Zone<br />
NU Niue<br />
NZ New Zealand (Aotearoa)<br />
OM Oman<br />
PA Panama<br />
PE Peru<br />
PF French Polynesia<br />
PG Papua New Guinea<br />
PH Philippines<br />
PK Pakistan<br />
PL Poland<br />
PM St. Pierre and Miquelon<br />
PN Pitcairn<br />
PR Puerto Rico<br />
PT Portugal<br />
PW Palau<br />
PY Paraguay<br />
QA Qatar<br />
RE Reunion<br />
RO Romania<br />
RU Russian Federation<br />
RW Rwanda<br />
SA Saudi Arabia<br />
Sb Solomon Islands<br />
SC Seychelles<br />
SD Sudan<br />
SE Sweden<br />
SG Singapore<br />
SH St. Helena<br />
SI Slovenia<br />
SJ Svalbard and Jan Mayen Islands<br />
SK Slovak Republic<br />
SL Sierra Leone<br />
SM San Marino<br />
SN Senegal<br />
SO Somalia<br />
SR Suriname<br />
ST Sao Tome and Principe<br />
SU USSR (former)<br />
SV El Salvador<br />
SY Syria<br />
SZ Swaziland<br />
TC Turks and Caicos Islands<br />
TD Chad<br />
TF French Southern Territories<br />
TG Togo<br />
TH Thailand<br />
TJ Tajikistan<br />
TK Tokelau<br />
TM Turkmenistan<br />
TN Tunisia<br />
TO Tonga<br />
TP East Timor<br />
TR Turkey<br />
TT Trinidad and Tobago<br />
TV Tuvalu<br />
TW Taiwan<br />
TZ Tanzania<br />
UA Ukraine<br />
UG Uganda<br />
UK United Kingdom<br />
UM US Minor Outlying Islands<br />
US United States<br />
UY Uruguay<br />
UZ Uzbekistan<br />
VA Vatican City State (Holy See)<br />
VC Saint Vincent and the Grenadines<br />
VE Venezuela<br />
VG Virgin Islands (British)<br />
VI Virgin Islands (U.S.)<br />
VN Viet Nam<br />
VU Vanuatu<br />
WF Wallis and Futuna Islands<br />
WS Samoa<br />
YE Yemen<br />
YT Mayotte<br />
YU Yugoslavia<br />
ZA South Africa<br />
ZM Zambia<br />
ZR Zaire<br />
ZW Zimbabwe<br />
COM US Commercial<br />
EDU US Educational<br />
GOV US Government<br />
INT International<br />
MIL US Military<br />
NET Network<br />
ORG Non-Profit Organization<br />
ARPA Old style Arpanet<br />
NATO Nato field</code></div></div>
<br />
در چند هفته گذشته شاهد حملات متعددی از کشورهایی که به آنها بلوک شرق گفته میشود بودیم که با استفاده از ربات پسورد یاب به ادمین تمام سایت ها حمله کرده بودند و میلیون ها پسورد را برای ورود تست میکردند.<br />
همچنین چندین بار حملات دی داس را داشتیم که چاره ای جزاین نیست که آی پی های کشورهایی رو که از اونجا حمله صورت میگیره مسدود کنیم.<br />
برای سایت های جوملایی من قبلا در انجمن توضیح دادم و کامپوننت آر اس فایروال اوریجینال را نیز برای دوستان قرار دادم تا بتوانند درصورتی که از سرورهای دیگری بجز پارس جوم هاست استفاده میکنند بتونند خودشون دسترسی کشورهارو محدود کنند.برای دانلود کامپوننت به تاپیک زیر مراجعه کنید :<br />
<br />
دیدن لینک ها برای شما امکان پذیر نیست. لطفا <a href="https://forums.parsjoom.ir/member.php?action=register">ثبت نام کنید</a> یا <a href="https://forums.parsjoom.ir/member.php?action=login">وارد حساب خود شوید</a> تا بتوانید لینک ها را ببینید.<br />
<br />
<br />
موفق و پیروز باشید]]></description>
			<content:encoded><![CDATA[درود<br />
برای جلوگیری از دسترسی آی پی های برخی کشورها به سرور خود میتوانید با استفاده از فایروال csf و وارد کردن کد اختصاصی اون کشورها در تنظیمات فایروال تمامی رنج آی پی های اون کشور را مسدود کنید.<br />
عنوان این مطلب Country Codes required for CC_DENY/ALLOW in CSF Firewall می باشد و در قسمت CC_DENY/ALLOW در تنظیمات فایروال میتوانید کد کشورهای مورد نظر برای مسدود سازی را وارد کنید و با کاما جدا کنید.<br />
از منو کشویی در تنظیمات فایروال Country Code Lists and Settings را انتخاب کنید و در فیلد CC_DENY مانند زیر وارد کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>AD,AM,AZ,BA,BY,MD,RU,SI,TM,UA,KZ,KG</code></div></div>
<br />
<div style="text-align: center;"><img src="http://forums.parsjoom.ir/imgup/1/1481887956_1_3febe41fcc.png" border="0" alt="[تصویر:  1481887956_1_3febe41fcc.png]" /></div>
<br />
در ادامه لیست کد کشورها را نیز میتوانید مشاهده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>Country Codes required for CC_DENY/ALLOW in CSF Firewall<br />
To block or allow website access to certain countries, following country codes are used in the CC_DENY or CC_ALLOW option in CSf Firewall.<br />
<br />
AD Andorra<br />
AE United Arab Emirates<br />
AF Afghanistan<br />
AG Antigua and Barbuda<br />
AI Anguilla<br />
AL Albania<br />
AM Armenia<br />
AN Netherlands Antilles<br />
AO Angola<br />
AQ Antarctica<br />
AR Argentina<br />
AS American Samoa<br />
AT Austria<br />
AU Australia<br />
AW Aruba<br />
AZ Azerbaijan<br />
BA Bosnia and Herzegovina<br />
BB Barbados<br />
BD Bangladesh<br />
BE Belgium<br />
BF Burkina Faso<br />
BG Bulgaria<br />
BH Bahrain<br />
BI Burundi<br />
BJ Benin<br />
BM Bermuda<br />
BN Brunei Darussalam<br />
BO Bolivia<br />
BR Brazil<br />
BS Bahamas<br />
BT Bhutan<br />
BV Bouvet Island<br />
BW Botswana<br />
BY Belarus<br />
BZ Belize<br />
CA Canada<br />
CC Cocos (Keeling) Islands<br />
CF Central African Republic<br />
CG Congo<br />
CH Switzerland<br />
CI Cote D'Ivoire (Ivory Coast)<br />
CK Cook Islands<br />
CL Chile<br />
CM Cameroon<br />
CN China<br />
CO Colombia<br />
CR Costa Rica<br />
CS Czechoslovakia (former)<br />
CU Cuba<br />
CV Cape Verde<br />
CX Christmas Island<br />
CY Cyprus<br />
CZ Czech Republic<br />
DE Germany<br />
DJ Djibouti<br />
DK Denmark<br />
DM Dominica<br />
DO Dominican Republic<br />
DZ Algeria<br />
EC Ecuador<br />
EE Estonia<br />
EG Egypt<br />
EH Western Sahara<br />
ER Eritrea<br />
ES Spain<br />
ET Ethiopia<br />
FI Finland<br />
FJ Fiji<br />
FK Falkland Islands (Malvinas)<br />
FM Micronesia<br />
FO Faroe Islands<br />
FR France<br />
FX France, Metropolitan<br />
GA Gabon<br />
GB Great Britain (UK)<br />
GD Grenada<br />
GE Georgia<br />
GF French Guiana<br />
GH Ghana<br />
GI Gibraltar<br />
GL Greenland<br />
GM Gambia<br />
GN Guinea<br />
GP Guadeloupe<br />
GQ Equatorial Guinea<br />
GR Greece<br />
GS S. Georgia and S. Sandwich Isls.<br />
GT Guatemala<br />
GU Guam<br />
GW Guinea-Bissau<br />
GY Guyana<br />
HK Hong Kong<br />
HM Heard and McDonald Islands<br />
HN Honduras<br />
HR Croatia (Hrvatska)<br />
HT Haiti<br />
HU Hungary<br />
ID Indonesia<br />
IE Ireland<br />
IL Israel<br />
IN India<br />
IO British Indian Ocean Territory<br />
IQ Iraq<br />
IR Iran<br />
IS Iceland<br />
IT Italy<br />
JM Jamaica<br />
JO Jordan<br />
JP Japan<br />
KE Kenya<br />
KG Kyrgyzstan<br />
KH Cambodia<br />
KI Kiribati<br />
KM Comoros<br />
KN Saint Kitts and Nevis<br />
KP Korea (North)<br />
KR Korea (South)<br />
KW Kuwait<br />
KY Cayman Islands<br />
KZ Kazakhstan<br />
LA Laos<br />
LB Lebanon<br />
LC Saint Lucia<br />
LI Liechtenstein<br />
LK Sri Lanka<br />
LR Liberia<br />
LS Lesotho<br />
LT Lithuania<br />
LU Luxembourg<br />
LV Latvia<br />
LY Libya<br />
MA Morocco<br />
MC Monaco<br />
MD Moldova<br />
MG Madagascar<br />
MH Marshall Islands<br />
MK Macedonia<br />
ML Mali<br />
MM Myanmar<br />
MN Mongolia<br />
MO Macau<br />
MP Northern Mariana Islands<br />
MQ Martinique<br />
MR Mauritania<br />
MS Montserrat<br />
MT Malta<br />
MU Mauritius<br />
MV Maldives<br />
MW Malawi<br />
MX Mexico<br />
MY Malaysia<br />
MZ Mozambique<br />
NA Namibia<br />
NC New Caledonia<br />
NE Niger<br />
NF Norfolk Island<br />
NG Nigeria<br />
NI Nicaragua<br />
NL Netherlands<br />
NO Norway<br />
NP Nepal<br />
NR Nauru<br />
NT Neutral Zone<br />
NU Niue<br />
NZ New Zealand (Aotearoa)<br />
OM Oman<br />
PA Panama<br />
PE Peru<br />
PF French Polynesia<br />
PG Papua New Guinea<br />
PH Philippines<br />
PK Pakistan<br />
PL Poland<br />
PM St. Pierre and Miquelon<br />
PN Pitcairn<br />
PR Puerto Rico<br />
PT Portugal<br />
PW Palau<br />
PY Paraguay<br />
QA Qatar<br />
RE Reunion<br />
RO Romania<br />
RU Russian Federation<br />
RW Rwanda<br />
SA Saudi Arabia<br />
Sb Solomon Islands<br />
SC Seychelles<br />
SD Sudan<br />
SE Sweden<br />
SG Singapore<br />
SH St. Helena<br />
SI Slovenia<br />
SJ Svalbard and Jan Mayen Islands<br />
SK Slovak Republic<br />
SL Sierra Leone<br />
SM San Marino<br />
SN Senegal<br />
SO Somalia<br />
SR Suriname<br />
ST Sao Tome and Principe<br />
SU USSR (former)<br />
SV El Salvador<br />
SY Syria<br />
SZ Swaziland<br />
TC Turks and Caicos Islands<br />
TD Chad<br />
TF French Southern Territories<br />
TG Togo<br />
TH Thailand<br />
TJ Tajikistan<br />
TK Tokelau<br />
TM Turkmenistan<br />
TN Tunisia<br />
TO Tonga<br />
TP East Timor<br />
TR Turkey<br />
TT Trinidad and Tobago<br />
TV Tuvalu<br />
TW Taiwan<br />
TZ Tanzania<br />
UA Ukraine<br />
UG Uganda<br />
UK United Kingdom<br />
UM US Minor Outlying Islands<br />
US United States<br />
UY Uruguay<br />
UZ Uzbekistan<br />
VA Vatican City State (Holy See)<br />
VC Saint Vincent and the Grenadines<br />
VE Venezuela<br />
VG Virgin Islands (British)<br />
VI Virgin Islands (U.S.)<br />
VN Viet Nam<br />
VU Vanuatu<br />
WF Wallis and Futuna Islands<br />
WS Samoa<br />
YE Yemen<br />
YT Mayotte<br />
YU Yugoslavia<br />
ZA South Africa<br />
ZM Zambia<br />
ZR Zaire<br />
ZW Zimbabwe<br />
COM US Commercial<br />
EDU US Educational<br />
GOV US Government<br />
INT International<br />
MIL US Military<br />
NET Network<br />
ORG Non-Profit Organization<br />
ARPA Old style Arpanet<br />
NATO Nato field</code></div></div>
<br />
در چند هفته گذشته شاهد حملات متعددی از کشورهایی که به آنها بلوک شرق گفته میشود بودیم که با استفاده از ربات پسورد یاب به ادمین تمام سایت ها حمله کرده بودند و میلیون ها پسورد را برای ورود تست میکردند.<br />
همچنین چندین بار حملات دی داس را داشتیم که چاره ای جزاین نیست که آی پی های کشورهایی رو که از اونجا حمله صورت میگیره مسدود کنیم.<br />
برای سایت های جوملایی من قبلا در انجمن توضیح دادم و کامپوننت آر اس فایروال اوریجینال را نیز برای دوستان قرار دادم تا بتوانند درصورتی که از سرورهای دیگری بجز پارس جوم هاست استفاده میکنند بتونند خودشون دسترسی کشورهارو محدود کنند.برای دانلود کامپوننت به تاپیک زیر مراجعه کنید :<br />
<br />
دیدن لینک ها برای شما امکان پذیر نیست. لطفا <a href="https://forums.parsjoom.ir/member.php?action=register">ثبت نام کنید</a> یا <a href="https://forums.parsjoom.ir/member.php?action=login">وارد حساب خود شوید</a> تا بتوانید لینک ها را ببینید.<br />
<br />
<br />
موفق و پیروز باشید]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[نصب Rootkit Hunter برای شناسایی مخرب ها و بکدورها]]></title>
			<link>https://forums.parsjoom.ir/thread-13571.html</link>
			<pubDate>Fri, 22 Nov 2013 20:17:11 +0000</pubDate>
			<guid isPermaLink="false">https://forums.parsjoom.ir/thread-13571.html</guid>
			<description><![CDATA[درود<br />
Rootkit Hunter یک اسکنر رایگان است برای اسکن فایل های سیستمی سرور جهت شناسایی backdoors و rootkits و exploits که میتوانید آن را نصب و سیستم عامل سرور را اسکن کنید.<br />
<br />
این اسکنر با سیستم عال های زیر سازگار است :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>RHEL 6.3/6.2/6.1/6/5.8, CentOS 6.3/6.2/6.1/6/5.8 and Fedora 12,13,14,15,16,17</code></div></div>
<br />
ابتدا توسط دستور زیر چک کنید از چه سیستم عاملی استفاده میکنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>cat /etc/redhat-release</code></div></div>
<br />
یتوانید به دو صورت نصب کنید یا بصورت خودکار یا بصورت معمولی.در یکی از سایت ها دیدم برای نصب خودکار دستوری را قرار داده که من هم برای شما قرار میدهم.<br />
<br />
برای نصب خودکار از دستور زیر در ssh استفاده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>wget http://solidshellsecurity.com/_public/scripts/rkhunter_install.sh -v &amp;&amp; chmod u+x rkhunter_install.sh &amp;&amp; ./rkhunter_install.sh --email EMAILHERE --time h</code></div></div>
<br />
بجای EMAILHERE ایمیل خود را وارد کنید.بعد از اتمام نصب میتوانید با دستور زیر سیستم خود را اسکن کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code># rkhunter --check</code></div></div>
<br />
جهت مشاهده هلپ اسکنر میتوانید از دستور زیر استفاده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code># rkhunter --help</code></div></div>
<br />
مسیر پوشه وقایع یا لاگ این اسکنر بعد از اولین اسکن در مسیر زیر می باشد :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>/var/log/rkhunter.log</code></div></div>
<br />
جهت بروز رسانی (آپدیت) این اسکنر از دستور زیر استفاده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>sudo rkhunter --update</code></div></div>
<br />
توجه داشته باشید این اسکنر سیستم رو اسکن میکنه و اکانت های کاربران هاستینگ شما را اسکن نمیکند.<br />
<br />
در انتها هم لیستی از مخرب هایی که این اسکنر میتونه شناسایی کند را قرار میدهم :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>55808 Trojan - Variant A<br />
ADM W0rm<br />
AjaKit<br />
aPa Kit<br />
Apache Worm<br />
Ambient (ark) Rootkit<br />
Balaur Rootkit<br />
BeastKit<br />
beX2<br />
BOBKit<br />
CiNIK Worm (Slapper.B variant)<br />
Danny-Boy's Abuse Kit<br />
Devil RootKit<br />
Dica<br />
Dreams Rootkit<br />
Duarawkz Rootkit<br />
Flea Linux Rootkit<br />
FreeBSD Rootkit<br />
Fuck`it Rootkit<br />
GasKit<br />
Heroin LKM<br />
HjC Rootkit<br />
ignoKit<br />
ImperalsS-FBRK<br />
Irix Rootkit<br />
Kitko<br />
Knark<br />
Li0n Worm<br />
Lockit / LJK2<br />
mod_rootme (Apache backdoor)<br />
MRK<br />
Ni0 Rootkit<br />
NSDAP (RootKit for SunOS)<br />
Optic Kit (Tux)<br />
Oz Rootkit<br />
Portacelo<br />
R3dstorm Toolkit<br />
RH-Sharpe's rootkit<br />
RSHA's rootkit<br />
Scalper Worm<br />
Shutdown<br />
SHV4 Rootkit<br />
SHV5 Rootkit<br />
Sin Rootkit<br />
Slapper<br />
Sneakin Rootkit<br />
Suckit<br />
SunOS Rootkit<br />
Superkit<br />
TBD (Telnet BackDoor)<br />
TeLeKiT<br />
T0rn Rootkit<br />
Trojanit Kit<br />
URK (Universal RootKit)<br />
VcKit<br />
Volc Rootkit<br />
X-Org SunOS Rootkit<br />
zaRwT.KiT Rootkit<br />
<br />
and... some known/unknown sniffers, backdoors like:<br />
Anti Anti-sniffer<br />
LuCe LKM<br />
THC Backdoor</code></div></div>
<br />
برای حذف این اسکنر هم میتونید از دستور زیر استفاده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>sudo apt-get remove rkhunter</code></div></div>
]]></description>
			<content:encoded><![CDATA[درود<br />
Rootkit Hunter یک اسکنر رایگان است برای اسکن فایل های سیستمی سرور جهت شناسایی backdoors و rootkits و exploits که میتوانید آن را نصب و سیستم عامل سرور را اسکن کنید.<br />
<br />
این اسکنر با سیستم عال های زیر سازگار است :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>RHEL 6.3/6.2/6.1/6/5.8, CentOS 6.3/6.2/6.1/6/5.8 and Fedora 12,13,14,15,16,17</code></div></div>
<br />
ابتدا توسط دستور زیر چک کنید از چه سیستم عاملی استفاده میکنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>cat /etc/redhat-release</code></div></div>
<br />
یتوانید به دو صورت نصب کنید یا بصورت خودکار یا بصورت معمولی.در یکی از سایت ها دیدم برای نصب خودکار دستوری را قرار داده که من هم برای شما قرار میدهم.<br />
<br />
برای نصب خودکار از دستور زیر در ssh استفاده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>wget http://solidshellsecurity.com/_public/scripts/rkhunter_install.sh -v &amp;&amp; chmod u+x rkhunter_install.sh &amp;&amp; ./rkhunter_install.sh --email EMAILHERE --time h</code></div></div>
<br />
بجای EMAILHERE ایمیل خود را وارد کنید.بعد از اتمام نصب میتوانید با دستور زیر سیستم خود را اسکن کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code># rkhunter --check</code></div></div>
<br />
جهت مشاهده هلپ اسکنر میتوانید از دستور زیر استفاده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code># rkhunter --help</code></div></div>
<br />
مسیر پوشه وقایع یا لاگ این اسکنر بعد از اولین اسکن در مسیر زیر می باشد :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>/var/log/rkhunter.log</code></div></div>
<br />
جهت بروز رسانی (آپدیت) این اسکنر از دستور زیر استفاده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>sudo rkhunter --update</code></div></div>
<br />
توجه داشته باشید این اسکنر سیستم رو اسکن میکنه و اکانت های کاربران هاستینگ شما را اسکن نمیکند.<br />
<br />
در انتها هم لیستی از مخرب هایی که این اسکنر میتونه شناسایی کند را قرار میدهم :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>55808 Trojan - Variant A<br />
ADM W0rm<br />
AjaKit<br />
aPa Kit<br />
Apache Worm<br />
Ambient (ark) Rootkit<br />
Balaur Rootkit<br />
BeastKit<br />
beX2<br />
BOBKit<br />
CiNIK Worm (Slapper.B variant)<br />
Danny-Boy's Abuse Kit<br />
Devil RootKit<br />
Dica<br />
Dreams Rootkit<br />
Duarawkz Rootkit<br />
Flea Linux Rootkit<br />
FreeBSD Rootkit<br />
Fuck`it Rootkit<br />
GasKit<br />
Heroin LKM<br />
HjC Rootkit<br />
ignoKit<br />
ImperalsS-FBRK<br />
Irix Rootkit<br />
Kitko<br />
Knark<br />
Li0n Worm<br />
Lockit / LJK2<br />
mod_rootme (Apache backdoor)<br />
MRK<br />
Ni0 Rootkit<br />
NSDAP (RootKit for SunOS)<br />
Optic Kit (Tux)<br />
Oz Rootkit<br />
Portacelo<br />
R3dstorm Toolkit<br />
RH-Sharpe's rootkit<br />
RSHA's rootkit<br />
Scalper Worm<br />
Shutdown<br />
SHV4 Rootkit<br />
SHV5 Rootkit<br />
Sin Rootkit<br />
Slapper<br />
Sneakin Rootkit<br />
Suckit<br />
SunOS Rootkit<br />
Superkit<br />
TBD (Telnet BackDoor)<br />
TeLeKiT<br />
T0rn Rootkit<br />
Trojanit Kit<br />
URK (Universal RootKit)<br />
VcKit<br />
Volc Rootkit<br />
X-Org SunOS Rootkit<br />
zaRwT.KiT Rootkit<br />
<br />
and... some known/unknown sniffers, backdoors like:<br />
Anti Anti-sniffer<br />
LuCe LKM<br />
THC Backdoor</code></div></div>
<br />
برای حذف این اسکنر هم میتونید از دستور زیر استفاده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>sudo apt-get remove rkhunter</code></div></div>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[شناسایی فایل های آلوده و مخرب های کد شده در سرور با Linux Malware Detect]]></title>
			<link>https://forums.parsjoom.ir/thread-13433.html</link>
			<pubDate>Fri, 08 Nov 2013 11:30:55 +0000</pubDate>
			<guid isPermaLink="false">https://forums.parsjoom.ir/thread-13433.html</guid>
			<description><![CDATA[درود<br />
بسیاری از فایل های مخرب و مورد استفاده برای نفوذ به سایت سرور جهت عدم شناسایی کد شده هستند و نفوذگر معمولا این فایل هارو کد میکند.<br />
بسیاری از این فایل ها توسط آنتی ویروس غیرقابل شناسایی هستند اما LMD یا Linux Malware Detect بسیاری از این فایل ها را شناسایی کرده و قرنطینه و یا حذف میکند.<br />
<br />
Linux Malware Detect یک پلاگین رایگان برای سرورهای لینوکس هست که براحتی قابل نصب و استفاده می باشد.<br />
<br />
دیدن لینک ها برای شما امکان پذیر نیست. لطفا <a href="https://forums.parsjoom.ir/member.php?action=register">ثبت نام کنید</a> یا <a href="https://forums.parsjoom.ir/member.php?action=login">وارد حساب خود شوید</a> تا بتوانید لینک ها را ببینید.<br />
<br />
<br />
ابتدا از همه سایت های موجود روی سرور بک آپ گرفته و سپس اقدام به نصب و استفاده Linux Malware Detect بکنید.<br />
<br />
ویژگیها :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>Features:<br />
- MD5 file hash detection for quick threat identification<br />
- HEX based pattern matching for identifying threat variants<br />
- statistical analysis component for detection of obfuscated threats (e.g: base64)<br />
- integrated detection of ClamAV to use as scanner engine for improved performance<br />
- integrated signature update feature with -u|–update<br />
- integrated version update feature with -d|–update-ver<br />
- scan-recent option to scan only files that have been added/changed in X days<br />
- scan-all option for full path based scanning<br />
- checkout option to upload suspected malware to rfxn.com for review / hashing<br />
- full reporting system to view current and previous scan results<br />
- quarantine queue that stores threats in a safe fashion with no permissions<br />
- quarantine batching option to quarantine the results of a current or past scans<br />
- quarantine restore option to restore files to original path, owner and perms<br />
- quarantine suspend account option to Cpanel suspend or shell revoke users<br />
- cleaner rules to attempt removal of malware injected strings<br />
- cleaner batching option to attempt cleaning of previous scan reports<br />
- cleaner rules to remove base64 and gzinflate(base64 injected malware<br />
- daily cron based scanning of all changes in last 24h in user homedirs<br />
- daily cron script compatible with stock RH style systems, Cpanel &amp; Ensim<br />
- kernel based inotify real time file scanning of created/modified/moved files<br />
- kernel inotify monitor that can take path data from STDIN or FILE<br />
- kernel inotify monitor convenience feature to monitor system users<br />
- kernel inotify monitor can be restricted to a configurable user html root<br />
- kernel inotify monitor with dynamic sysctl limits for optimal performance<br />
- kernel inotify alerting through daily and/or optional weekly reports<br />
- e-mail alert reporting after every scan execution (manual &amp; daily)<br />
- path, extension and signature based ignore options<br />
- background scanner option for unattended scan operations<br />
- verbose logging &amp; output of all actions</code></div></div>
<br />
فایل های مخرب قابل شناسایی با Linux Malware Detect :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>Detected Threats:<br />
LMD 1.4.0 has a total of 7,241 (5393 MD5 / 1848 HEX) signatures (before updates), below is a listing of the top 60 threats by prevalence detected by LMD:<br />
base64.inject.unclassed&nbsp;&nbsp;&nbsp;&nbsp; perl.ircbot.xscan<br />
bin.dccserv.irsexxy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perl.mailer.yellsoft<br />
bin.fakeproc.Xnuxer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perl.shell.cbLorD<br />
bin.ircbot.nbot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perl.shell.cgitelnet<br />
bin.ircbot.php3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.cmdshell.c100<br />
bin.ircbot.unclassed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.cmdshell.c99<br />
bin.pktflood.ABC123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.cmdshell.cih<br />
bin.pktflood.osf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.cmdshell.egyspider<br />
bin.trojan.linuxsmalli&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.cmdshell.fx29<br />
c.ircbot.tsunami&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.cmdshell.ItsmYarD<br />
exp.linux.rstb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.cmdshell.Ketemu<br />
exp.linux.unclassed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.cmdshell.N3tshell<br />
exp.setuid0.unclassed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.cmdshell.r57<br />
gzbase64.inject&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.cmdshell.unclassed<br />
html.phishing.auc61&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.defash.buno<br />
html.phishing.hsbc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.exe.globals<br />
perl.connback.DataCha0s&nbsp;&nbsp;&nbsp;&nbsp; php.include.remote<br />
perl.connback.N2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.ircbot.InsideTeam<br />
perl.cpanel.cpwrap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.ircbot.lolwut<br />
perl.ircbot.atrixteam&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.ircbot.sniper<br />
perl.ircbot.bRuNo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.ircbot.vj_denie<br />
perl.ircbot.Clx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.mailer.10hack<br />
perl.ircbot.devil&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.mailer.bombam<br />
perl.ircbot.fx29&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.mailer.PostMan<br />
perl.ircbot.magnum&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.phishing.AliKay<br />
perl.ircbot.oldwolf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.phishing.mrbrain<br />
perl.ircbot.putr4XtReme&nbsp;&nbsp;&nbsp;&nbsp; php.phishing.ReZulT<br />
perl.ircbot.rafflesia&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.pktflood.oey<br />
perl.ircbot.UberCracker&nbsp;&nbsp;&nbsp;&nbsp; php.shell.rc99<br />
perl.ircbot.xdh&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.shell.shellcomm</code></div></div>
<br />
برای نصب از طریق ssh از دستورات زیر استفاده کنید.<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>cd /tmp<br />
<br />
wget http://www.rfxn.com/downloads/maldetect-current.tar.gz<br />
<br />
tar xfz maldetect-current.tar.gz<br />
<br />
cd maldetect-*<br />
<br />
./install.sh</code></div></div>
<br />
بعد از نصب میتوانید از کامندهای (دستورات) مختلف موجود برای این پلاگین برای اسکن و مانیتورینگ و قرنطینه و ارسال گزارشات به ایمیل و غیره استفاده کنید.<br />
<br />
در لینک توضیحات میتونید همه این دستورات را مشاهده و استفاده کنید :<br />
<br />
دیدن لینک ها برای شما امکان پذیر نیست. لطفا <a href="https://forums.parsjoom.ir/member.php?action=register">ثبت نام کنید</a> یا <a href="https://forums.parsjoom.ir/member.php?action=login">وارد حساب خود شوید</a> تا بتوانید لینک ها را ببینید.<br />
<br />
<br />
در لینک بالا تمامی دستورات و توضیحات موجود است و من نیز در تگ کد در زیر قرار دادم تا بتونید با کپی و پیست در یک فایل متنی استفاده کنید.<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>Linux Malware Detect v1.4.1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(C) 2002-2013, R-fx Networks &lt;proj@r-fx.org&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(C) 2013, Ryan MacDonald &lt;ryan@r-fx.org&gt;<br />
inotifywait (C) 2007, Rohan McGovern &lt;rohan@mcgovern.id.au&gt;<br />
This program may be freely redistributed under the terms of the GNU GPL v2<br />
<br />
::::::::::::::::::::::::::::::::::<br />
<br />
:: CONTENTS ::<br />
.: 1 [ DESCRIPTION ]<br />
.: 2 [ FEATURES ]<br />
.: 3 [ THREAT SOURCE DATA ]<br />
.: 4 [ RELEASE UPDATES ]<br />
.: 4.1 [ SIGNATURE UPDATES ]<br />
.: 5 [ DETECTED THREATS ]<br />
.: 6 [ THREAT SHARING ]<br />
.: 7 [ CONFIGURATION ]<br />
.: 8 [ IGNORE OPTIONS ]<br />
.: 9 [ CLI USAGE ]<br />
.: 10 [ CRON DAILY ]<br />
.: 11 [ INOTIFY MONITORING ]<br />
.: 12 [ MODSECURITY2 UPLOAD SCANNING ]<br />
.: 13 [ CLEANER RULES ]<br />
<br />
::::::::::::::::::::::::::::::::::<br />
<br />
.: 1 [ DESCRIPTION ]<br />
<br />
Linux Malware Detect (LMD) is a malware scanner for Linux released under the <br />
GNU GPLv2 license, that is designed around the threats faced in shared hosted <br />
environments. It uses threat data from network edge intrusion detection <br />
systems to extract malware that is actively being used in attacks and <br />
generates signatures for detection. In addition, threat data is also derived <br />
from user submissions with the LMD checkout feature and from malware <br />
community resources. The signatures that LMD uses are MD5 file hashes and HEX <br />
pattern matches, they are also easily exported to any number of detection <br />
tools such as ClamAV.<br />
<br />
The driving force behind LMD is that there is currently limited availability <br />
of open source/restriction free tools for Linux systems that focus on malware <br />
detection and more important that get it right. Many of the AV products that <br />
perform malware detection on Linux have a very poor track record of detecting <br />
threats, especially those targeted at shared hosted environments.<br />
<br />
The threat landscape in shared hosted environments is unique from that of the <br />
standard AV products detection suite in that they are detecting primarily OS <br />
level trojans, rootkits and traditional file-infecting viruses but missing <br />
the ever increasing variety of malware on the user account level which serves <br />
as an attack platform.<br />
<br />
Using the CYMRU malware hash registry, which provides malware detection data <br />
for 30 major AV packages, we can demonstrate this short coming in current <br />
threat detection. The following is an analysis of the core MD5 hashes (5,393) <br />
in LMD 1.4.1 and the percentage of major AV products that currently detect <br />
the hashes.<br />
<br />
KNOWN MALWARE:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1029<br />
% AV DETECT (AVG):&nbsp;&nbsp;48<br />
% AV DETECT (LOW):&nbsp;&nbsp;58<br />
% AV DETECT (HIGH): 80<br />
UNKNOWN MALWARE:&nbsp;&nbsp;&nbsp;&nbsp;4364<br />
<br />
What this information means, is that of the of the 5,393 hashes, 81% or 4,364 <br />
malware items are NOT detected / known by the top 30 major AV packages. The 1,029 <br />
malware items that are known / detected have an average of a 48% detection <br />
rate among major AV packages with a low / high margin of detection at 58 and <br />
80 percent respective. This clearly demonstrates the lacking capacity in currently<br />
available tools and why it is important that something fill the void, especially<br />
in the Linux shared hosted environment.<br />
<br />
.: 2 [ FEATURES ]<br />
<br />
- MD5 file hash detection for quick threat identification<br />
- HEX based pattern matching for identifying threat variants<br />
- statistical analysis component for detection of obfuscated threats (e.g: base64)<br />
- integrated detection of ClamAV to use as scanner engine for improved performance<br />
- integrated signature update feature with -u|--update<br />
- integrated version update feature with -d|--update-ver<br />
- scan-recent option to scan only files that have been added/changed in X days<br />
- scan-all option for full path based scanning<br />
- checkout option to upload suspected malware to rfxn.com for review / hashing<br />
- full reporting system to view current and previous scan results<br />
- quarantine queue that stores threats in a safe fashion with no permissions<br />
- quarantine batching option to quarantine the results of a current or past scans<br />
- quarantine restore option to restore files to original path, owner and perms<br />
- quarantine suspend account option to Cpanel suspend or shell revoke users<br />
- cleaner rules to attempt removal of malware injected strings<br />
- cleaner batching option to attempt cleaning of previous scan reports<br />
- cleaner rules to remove base64 and gzinflate(base64 injected malware<br />
- daily cron based scanning of all changes in last 24h in user homedirs<br />
- daily cron script compatible with stock RH style systems, Cpanel &amp; Ensim<br />
- kernel based inotify real time file scanning of created/modified/moved files<br />
- kernel inotify monitor that can take path data from STDIN or FILE<br />
- kernel inotify monitor convenience feature to monitor system users<br />
- kernel inotify monitor can be restricted to a configurable user html root<br />
- kernel inotify monitor with dynamic sysctl limits for optimal performance<br />
- kernel inotify alerting through daily and/or optional weekly reports<br />
- HTTP upload scanning through mod_security2 inspectFile hook<br />
- e-mail alert reporting after every scan execution (manual &amp; daily)<br />
- path, extension and signature based ignore options<br />
- background scanner option for unattended scan operations<br />
- verbose logging &amp; output of all actions<br />
<br />
<br />
.: 3 [ THREAT SOURCE DATA ]<br />
<br />
The defining difference with LMD is that it doesn't just detect malware based <br />
on signatures/hashes that someone else generated but rather it is an <br />
encompassing project that actively tracks in the wild threats and generates <br />
signatures based on those real world threats that are currently circulating.<br />
<br />
There are four main sources for malware data that is used to generate LMD <br />
signatures:<br />
- Network Edge IPS: The network I manage hosts over 35,000 web sites and as <br />
such receives a large amount of daily abuse, all of which is logged by our <br />
network edge IPS. The IPS events are processed to extract malware url's, <br />
decode POST payload and base64/gzip encoded abuse data and ultimately that <br />
malware is retrieved, reviewed, classified and then signatures generated as <br />
appropriate. The vast majority of LMD signatures have been derived from IPS <br />
extracted data.<br />
- Community Data: Data is aggregated from multiple community malware websites <br />
such as clean-mx and malwaredomainlist then processed to retrieve new <br />
malware, review, classify and then generate signatures.<br />
- ClamAV: The HEX &amp; MD5 detection signatures from ClamAV are monitored for <br />
relevant updates that apply to the target user group of LMD and added to the <br />
project as appropriate. To date there has been roughly 400 signatures ported <br />
from ClamAV while the LMD project has contributed back to ClamAV by <br />
submitting over 1,100 signatures and continues to do so on an ongoing basis.<br />
- User Submission: LMD has a checkout feature that allows users to submit <br />
suspected malware for review, this has grown into a very popular feature and <br />
generates on average about 30-50 submissions per week.<br />
<br />
.: 4 [ RELEASE UPDATES ]<br />
Updates to the release version of LMD are not automatically installed but can<br />
be installed using the --update-ver option. There is good reasons that this is<br />
not done automatically and I really dont feel like listing them so just think<br />
about it a bit.<br />
<br />
The latest changes in the release version can always be viewed at:<br />
http://www.rfxn.com/appdocs/CHANGELOG.maldetect<br />
<br />
.: 4.1 [ SIGNATURE UPDATES ]<br />
<br />
The LMD signatures are updated typically once per day or more frequently<br />
depending on incoming threat data from the LMD checkout feature, IPS malware<br />
extraction and other sources. The updating of signatures in LMD installations<br />
is performed daily through the default cron.daily script with the --update<br />
option, which can be run manually at any time.<br />
<br />
An RSS &amp; XML data source is available for tracking malware threat updates:<br />
RSS Recent Signatures: http://www.rfxn.com/api/lmd<br />
XML Recent Signatures: http://www.rfxn.com/api/lmd?id=recent<br />
XML All Signatures:&nbsp;&nbsp;&nbsp;&nbsp;http://www.rfxn.com/api/lmd?id=all<br />
<br />
.: 5 [ DETECTED THREATS ]<br />
<br />
LMD 1.4.1 has a total of 7,241 (5393 MD5 / 1848 HEX) signatures (before updates),<br />
below is a listing of the top 60 threats by prevalence detected by LMD.<br />
<br />
base64.inject.unclassed&nbsp;&nbsp;&nbsp;&nbsp;bin.dccserv.irsexxy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bin.fakeproc.Xnuxer<br />
bin.ircbot.nbot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bin.ircbot.php3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bin.ircbot.unclassed<br />
bin.pktflood.ABC123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bin.pktflood.osf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin.trojan.linuxsmalli<br />
c.ircbot.tsunami&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exp.linux.rstb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exp.linux.unclassed<br />
exp.setuid0.unclassed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gzbase64.inject&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;html.phishing.auc61<br />
html.phishing.hsbc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perl.connback.DataCha0s&nbsp;&nbsp;perl.connback.N2<br />
perl.cpanel.cpwrap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perl.mailer.yellsoft&nbsp;&nbsp;&nbsp;&nbsp; perl.ircbot.atrixteam<br />
perl.ircbot.bRuNo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;perl.ircbot.Clx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;perl.ircbot.devil<br />
perl.ircbot.fx29&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perl.ircbot.magnum&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perl.ircbot.oldwolf<br />
perl.ircbot.putr4XtReme&nbsp;&nbsp;&nbsp;&nbsp;perl.ircbot.rafflesia&nbsp;&nbsp;&nbsp;&nbsp;perl.ircbot.UberCracker<br />
perl.ircbot.xdh&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;perl.ircbot.xscan&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;perl.shell.cbLorD<br />
perl.shell.cgitelnet&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.cmdshell.c100&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.cmdshell.c99<br />
php.cmdshell.cih&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.cmdshell.egyspider&nbsp;&nbsp; php.cmdshell.fx29<br />
php.cmdshell.ItsmYarD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.cmdshell.Ketemu&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.cmdshell.N3tshell<br />
php.cmdshell.r57&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.cmdshell.unclassed&nbsp;&nbsp; php.defash.buno<br />
php.exe.globals&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.include.remote&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.ircbot.InsideTeam<br />
php.ircbot.lolwut&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.ircbot.sniper&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.ircbot.vj_denie<br />
php.mailer.10hack&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.mailer.bombam&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.mailer.PostMan<br />
php.phishing.AliKay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.phishing.mrbrain&nbsp;&nbsp;&nbsp;&nbsp; php.phishing.ReZulT<br />
php.pktflood.oey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.shell.rc99&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.shell.shellcomm<br />
<br />
.: 6 [ THREAT SHARING ]<br />
<br />
I am a firm believer in not reinventing the wheel, for my own sanity or that<br />
of others. As such all unique theat data is submitted to CYMRU &amp; ClamAV so<br />
that the open source and anti-malware community at large can grow from this<br />
project.<br />
<br />
.: 7 [ CONFIGURATION ]<br />
<br />
The configuration of LMD is handled through /usr/local/maldetect/conf.maldet<br />
and all options are well commented for ease of configuration.<br />
<br />
By default LMD has the auto-qurantine of files disabled, this will mean that<br />
YOU WILL NEED TO ACT on any threats detected or pass the SCANID to the '-q'<br />
option to batch quarantine the results. To change this please set quar_hits=1<br />
in conf.maldet.<br />
<br />
.: 8 [ IGNORE OPTIONS ]<br />
<br />
There are four ignore files available and they break down as follows:<br />
<br />
/usr/local/maldetect/ignore_paths<br />
A line spaced file for paths that are to be execluded from search results<br />
 Sample ignore entry:<br />
 /home/user/public_html/cgi-bin<br />
<br />
/usr/local/maldetect/ignore_file_ext<br />
A line spaced file for file extensions to be excluded from search results<br />
 Sample ignore entry:<br />
 .js<br />
 .css<br />
<br />
/usr/local/maldetect/ignore_sigs<br />
A line spaced file for signatures that should be removed from file scanning<br />
 Sample ignore entry:<br />
 base64.inject.unclassed<br />
<br />
/usr/local/maldetect/ignore_inotify<br />
A line spaced file for regexp paths that are excluded from inotify monitoring<br />
 Sample ignore entry:<br />
 ^/home/user&#36;<br />
 ^/var/tmp/#sql_.*&#92;.MYD&#36;<br />
<br />
.: 9 [ CLI USAGE ]<br />
<br />
Once LMD is installed it can be run through the 'maldet' command, the '--help'<br />
option gives a detailed summary of usage options:<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-b, --background<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Execute operations in the background, ideal for large scans<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e.g: maldet -b -r /home/?/public_html 7<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-u, --update<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Update malware detection signatures from rfxn.com<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-d, --update-ver<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Update the installed version from rfxn.com<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-m, --monitor USERS|PATHS|FILE<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Run maldet with inotify kernel level file create/modify monitoring<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If USERS is specified, monitor user homedirs for UID's &gt; 500<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If FILE is specified, paths will be extracted from file, line spaced<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If PATHS are specified, must be comma spaced list, NO WILDCARDS!<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --monitor users<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --monitor /root/monitor_paths<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --monitor /home/mike,/home/ashton<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-k, --kill<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Terminate inotify monitoring service<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-r, --scan-recent PATH DAYS<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Scan files created/modified in the last X days (default: 7d, wildcard: ?)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet -r /home/?/public_html 2<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-a, --scan-all PATH<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Scan all files in path (default: /home, wildcard: ?)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet -a /home/?/public_html<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-c, --checkout FILE<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Upload suspected malware to rfxn.com for review &amp; hashing into signatures<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-l, --log<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; View maldet log file events<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-e, --report SCANID email<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; View scan report of most recent scan or of a specific SCANID and optionally<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e-mail the report to a supplied e-mail address<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --report<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --report list<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --report 050910-1534.21135<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --report SCANID user@domain.com<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-s, --restore FILE|SCANID<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Restore file from quarantine queue to orginal path or restore all items from<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a specific SCANID<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --restore /usr/local/maldetect/quarantine/config.php.23754<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --restore 050910-1534.21135<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-q, --quarantine SCANID<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Quarantine all malware from report SCANID<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --quarantine 050910-1534.21135<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-n, --clean SCANID<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Try to clean &amp; restore malware hits from report SCANID<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --clean 050910-1534.21135<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-U, --user USER<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set execution under specified user, ideal for restoring from user quarantine or<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to view user reports.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --user nobody --report<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --user nobody --restore 050910-1534.21135<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-co, --config-option VAR1=VALUE,VAR2=VALUE,VAR3=VALUE<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set or redefine the value of conf.maldet config options<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --config-option email_addr=you@domain.com,quar_hits=1<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-p, --purge<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Clear logs, quarantine queue, session and temporary data.<br />
<br />
.: 10 [ CRON DAILY ]<br />
<br />
The cronjob installed by LMD is located at /etc/cron.daily/maldet and is used<br />
to perform a daily update of signatures, keep the session, temp and quarantine<br />
data to no more than 14d old and run a daily scan of recent file system changes.<br />
<br />
The daily scan supports Ensim virtual roots or standard Linux /home*/user paths,<br />
such as Cpanel. The default is to just scan the web roots daily, which breaks<br />
down as /home*/*/public_html or on Ensim /home/virtual/*/fst/var/www/html and<br />
/home/virtual/*/fst/home/*/public_html.<br />
<br />
If you are running monitor mode, the daily scans will be skipped and instead a<br />
daily report will be issued for all monitoring events. If you need to scan<br />
additional paths, you should review the cronjob and edit it accordingly.<br />
<br />
.: 11 [ INOTIFY MONITORING ]<br />
<br />
The inotify monitoring feature is designed to monitor users in real-time for<br />
file creation/modify/move operations. This option requires a kernel that<br />
supports inotify_watch (CONFIG_INOTIFY) which is found in kernels 2.6.13+<br />
and CentOS/RHEL 5 by default. If you are running CentOS 4 you should consider<br />
an inbox upgrade with: http://www.rfxn.com/upgrade-centos-4-8-to-5-3/<br />
<br />
There are three modes that the monitor can be executed with and they relate<br />
to what will be monitored, they are USERS|PATHS|FILES. <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --monitor users<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --monitor /root/monitor_paths<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --monitor /home/mike,/home/ashton<br />
<br />
The options break down as follows:<br />
USERS -&nbsp;&nbsp;The users option will take the homedirs of all system users that are<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; above inotify_minuid and monitor them. If inotify_webdir is set then<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the users webdir, if it exists, will only be monitored.<br />
PATHS -&nbsp;&nbsp;A comma spaced list of paths to monitor<br />
FILE&nbsp;&nbsp;-&nbsp;&nbsp;A line spaced file list of paths to monitor<br />
<br />
Once you start maldet in monitor mode, it will preprocess the paths based on<br />
the option specified followed by starting the inotify process. The starting of<br />
the inotify process can be a time consuming task as it needs to setup a monitor<br />
hook for every file under the monitored paths. Although the startup process can<br />
impact the load temporarily, once the process has started it maintains all of<br />
its resources inside kernel memory and has a very small userspace footprint in<br />
memory or cpu usage.<br />
<br />
The scanner component of the monitor watches for notifications from the inotify<br />
process and batches items to be scanned, by default, every 30 seconds. If you<br />
need tighter control of the scanning timer, you can edit inotify_stime in<br />
conf.maldet.<br />
<br />
The alerting of file hits under monitor mode is handled through a daily report<br />
instead of sending an email on every hit. The cron.daily job installed by LMD<br />
will call an --alert-daily flag and send an alert for the last days hits. There<br />
is also an --alert-weekly option that can be used, simply edit the cron at<br />
/etc/cron.daily/maldet and change the --alert-daily to --alert-weekly.<br />
<br />
Terminating the inotify monitoring is done by passing the '-k|--kill-monitor'<br />
option to maldet, it will touch a file handle monitored by maldet and on the<br />
next waking cycle of the monitor service, it will terminate itself and all<br />
inotify processes.<br />
<br />
.: 12 [ MODSECURITY2 UPLOAD SCANNING ]<br />
<br />
The support for HTTP upload scanning is provided through mod_security2's inspectFile hook.<br />
This feature allows for a validation script to be used in permitting or denying an upload. <br />
<br />
The convenience script to faciliate this is called modsec.sh and is located in the<br />
/usr/local/maldetect installation path. The default setup is to run a standard maldet scan<br />
with no clamav support, no cleaner rule executions and quarantining enabled; these options<br />
are set in the interest of performance vs accuracy which is a fair tradeoff. <br />
<br />
The scan options can be modified in the modsec.sh file if so desired, the default<br />
scan options are as follows:<br />
--config-option quar_hits=1,quar_clean=0,clamav_scan=0 --modsec -a "&#36;file"<br />
<br />
There is a tangible performance difference in disabling clamav scanning in this usage<br />
scenario. The native LMD scanner engine is much faster than the clamav scanner engine<br />
in single file scans by a wide margin. A single file scan using clamav takes roughly<br />
3sec on average while the LMD scanner engine takes 0.5sec or less.<br />
<br />
To enable upload scanning with mod_security2 you must set enable the public_scan option<br />
in conf.maldet (public_scan=1) then add the following rules to your mod_security2 <br />
configuration. These rules are best placed in your modsec2.user.conf file on cpanel servers<br />
or at the top of the appropraite rules file for your setup.<br />
<br />
/usr/local/apache/conf/modsec2.user.conf (or similar mod_security2 rules file):<br />
SecRequestBodyAccess On<br />
SecRule FILES_TMPNAMES "@inspectFile /usr/local/maldetect/modsec.sh" &#92;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"log,auditlog,deny,severity:2,phase:2,t:none"<br />
<br />
A restart of the HTTPd service is required following these changes.<br />
<br />
When an upload takes place that is determined to be malware, it will be rejected and an<br />
entry will appear in the mod_security2 SecAuditLog file. On cpanel servers and most<br />
configurations this is the modsec_audit.log located under /usr/local/apache/logs or <br />
/var/log/httpd.<br />
<br />
The log entry will appear similar to the following:<br />
Message: Access denied with code 406 (phase 2). File "/tmp/20111120-....-file" rejected by<br />
the approver script "/usr/local/maldetect/modsec.sh": 0 maldet: {HEX}php.cmdshell.r57.317<br />
/tmp/20111120-....-file [file "/usr/local/apache/conf/modsec2.user.conf"] [line "3"]<br />
[severity "CRITICAL"]<br />
<br />
The default alerting options will apply and an e-mail will be sent when hits are found. This<br />
can be changed in the modsec.sh script by editing the --config-option values.<br />
<br />
To disable alerts append email_alert=0 to the --config-option values:<br />
--config-option quar_hits=1,quar_clean=0,clamav_scan=0,email_alert=0<br />
<br />
To change the e-mail address for alerts on upload hits, append email_addr=you@domain.com<br />
to the --config-option values:<br />
--config-option quar_hits=1,quar_clean=0,clamav_scan=0,email_addr=you@domain.com<br />
<br />
The nature of uploads is such that they are performed either under the user that the HTTP<br />
service is running as or under that of a system user in an suexec style setup (i.e: phpsuexec).<br />
This required a change to the way LMD stores session, temporary and quarantine data to allow<br />
for non-root users to perform scans.<br />
<br />
Given that the maldetect installation path is owned by user root, we either need to set a pub<br />
path world writable (777) or populate the pub path with user owned paths. It was undesirable<br />
to set any path world writable and as such a feature to populate path data was created. This<br />
feature is controlled with the --mkpubpaths flag and is executed from cron every 10 minutes,<br />
it will only execute if the public_scan variable is enabled in conf.maldet. As such, it is<br />
important to make sure the public_scan variable is set to enabled (1) in conf.maldet and it is<br />
advised to run 'maldet --mkpubpaths' manually to prepopulate the user paths. There after, the<br />
cron will ensure new users have paths created no later than 10 minutes after creation.<br />
<br />
All non-root scans, such as those performed under mod_security2, will be stored under the<br />
/usr/local/maldetect/pub/username directory tree. The quarantine paths are relative to the user<br />
that exectues the scan, so user nobody would be under pub/nobody/quar/. The actual paths<br />
for where files are quarantined and the user which executed the scan, can be verified in the<br />
e-mail reports for upload hits.<br />
<br />
To restore files quarantined under non-root users, you must pass the -U|--user option to LMD,<br />
for example if user nobody quarantined a file you would like to restore, it can be restored as<br />
follows:<br />
maldet --user nobody /usr/local/maldetect/pub/nobody/quar/20111120-file-SFwTeu.22408<br />
<br />
Or, as always the scan ID can be used to restore<br />
maldet --user nobody 112011-0032.13771<br />
<br />
.: 13 [ CLEANER RULES ]<br />
<br />
The cleaner function looks for signature-named rules under the clean/ path,<br />
these rules can consist of any command that is designed to clean a file of<br />
malware. A cleaner rule must result in a file being able to pass a scan<br />
without tripping a HIT otherwise it will classify the clean action as FAILED.<br />
<br />
Let us assume for a moment we have malware that we want to clean and it trips<br />
with the signature "{HEX}php.cmdshell.r57.89". The actual signature string in<br />
this is "php.cmdshell.r57", the "{HEX}" just defines the format and ".89" is<br />
the variant number. So, to create a clean rule for php.cmdshell.r57 we would<br />
add a file 'clean/php.cmdshell.r57' and this would be executed against any<br />
file that hits on the signature of the same name.<br />
<br />
The actual contents of the rule should be a single line command that will be<br />
executed against the hit file, for example the execution looks something like:<br />
<br />
YOUR_COMMAND MALWARE_FILE<br />
<br />
So, for a string based malware injection you could easily throw in a 'sed -i'<br />
into the rule file with the appropriate pattern to strip the string(s) from<br />
the file. Once the clean command has run, a rescan will be performed on the<br />
file and if it causes causes a hit, the clean will be marked as FAILED. A<br />
successful clean ALWAYS results in the file being restored if possible to<br />
its original path, owner and mode.<br />
<br />
An important note is that the cleaner function is a subfunction of the<br />
quarantine, so if the quarantine is disabled then by default, malware hits<br />
will not have clean attempts made. There are two ways around this, apart from<br />
the obvious of turning on quarantine and rescanning (which is a waste of time).<br />
The best way is to enable the quarantine and then use the -q|--quarantine flag<br />
to batch through the scan results, which will quarantine and clean files. The<br />
second is to use the -n|--clean flag which will try to clean files in place,<br />
be that in the quarantine or the files original path, wherever it can be found.<br />
<br />
e.g: maldet -q SCANID<br />
e.g: maldet --clean SCANID<br />
129.121.132.46</code></div></div>
<br />
برای مثال برای اسکن پوشه public_html همه سایت های موجود برروی سرور میتونید از دستور زیر از طریق اس اس اچ استفاده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>maldet -a /home/?/public_html</code></div></div>
<br />
برای فعال کردن مانیتورینگ این پلاگین برای همه یوزرها از دستور زیر استفاده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>maldet --monitor users</code></div></div>
<br />
دستور بالا مانیتورینگ را برای همه یوزرها فعال میکند.اگر میخواهید مانیتورینگ رو فقط برای یوزر یا یوزرهای دلخواه فعال کنید میتوانید از دستور زیر استفاده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>maldet --monitor /home/ganji,/home/parsjoom</code></div></div>
<br />
مسیر فایل کانفینگ برای ایجاد تغییرات و تنظیمات :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>/usr/local/maldetect/conf.maldet</code></div></div>
<br />
اگر میخواهید فایل هایی که در چند روز گذشته تغییر داده شده اند و یا دستکاری شده اند اطلاع پیدا کنید از دستور زیر برای اسکن از طریق اس اس اچ استفاده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>maldet -r /home/?/public_html 2</code></div></div>
<br />
بجای عدد دو در بالا عدد دلخواه را وارد کنید .<br />
<br />
این پلاگین بعد از هراسکن گزارش اسکن را در فایل لاگ با شماره ای ذخیره میکند و برای ارسال لاگ اسکن به ایمیل دیخواه میتوانید از دستور زیر استفاده کنید:<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>maldet --report SCANID user@domain.com</code></div></div>
<br />
بجای اسکن آی دی باید آی دی که بعد از اسکن کامل در putty به شما نمایش داده میشود را وارد کنید و برای کپی کردن ای دی از پوتی فقط کافیست ای دی را سلکت کنید و کلیک راست موس را بفشارید تا کلیبورد شما کپی شود.<br />
بجای ایمیل هم ایمیل دلخواه را وارد کنید<br />
<br />
شما میتوانید با مطالعه راهنمای پلاگین Linux Malware Detect ازتمامی امکانات و دستورات این پلاگین مطلع شوید.<br />
برخی ایرادهایی که به این پلاگین گرفته میشود حذف برخی از فایل های سالم است که آلوده شناخته نشده است اما در صورتی هم که چنین مشکلی وجود داشته باشد باز هم این پلاگین بسیار کاربردی و ضروری است.<br />
شما میتوانید یوزرها رو ابتدا اسکن کنید و فایل هایی که در لاگ برای شما ارسال میشود را چک کنید و درصورتی که فایل مشکوکی دیدید حذف و بقیه را دست نخورده باقی بزارید.]]></description>
			<content:encoded><![CDATA[درود<br />
بسیاری از فایل های مخرب و مورد استفاده برای نفوذ به سایت سرور جهت عدم شناسایی کد شده هستند و نفوذگر معمولا این فایل هارو کد میکند.<br />
بسیاری از این فایل ها توسط آنتی ویروس غیرقابل شناسایی هستند اما LMD یا Linux Malware Detect بسیاری از این فایل ها را شناسایی کرده و قرنطینه و یا حذف میکند.<br />
<br />
Linux Malware Detect یک پلاگین رایگان برای سرورهای لینوکس هست که براحتی قابل نصب و استفاده می باشد.<br />
<br />
دیدن لینک ها برای شما امکان پذیر نیست. لطفا <a href="https://forums.parsjoom.ir/member.php?action=register">ثبت نام کنید</a> یا <a href="https://forums.parsjoom.ir/member.php?action=login">وارد حساب خود شوید</a> تا بتوانید لینک ها را ببینید.<br />
<br />
<br />
ابتدا از همه سایت های موجود روی سرور بک آپ گرفته و سپس اقدام به نصب و استفاده Linux Malware Detect بکنید.<br />
<br />
ویژگیها :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>Features:<br />
- MD5 file hash detection for quick threat identification<br />
- HEX based pattern matching for identifying threat variants<br />
- statistical analysis component for detection of obfuscated threats (e.g: base64)<br />
- integrated detection of ClamAV to use as scanner engine for improved performance<br />
- integrated signature update feature with -u|–update<br />
- integrated version update feature with -d|–update-ver<br />
- scan-recent option to scan only files that have been added/changed in X days<br />
- scan-all option for full path based scanning<br />
- checkout option to upload suspected malware to rfxn.com for review / hashing<br />
- full reporting system to view current and previous scan results<br />
- quarantine queue that stores threats in a safe fashion with no permissions<br />
- quarantine batching option to quarantine the results of a current or past scans<br />
- quarantine restore option to restore files to original path, owner and perms<br />
- quarantine suspend account option to Cpanel suspend or shell revoke users<br />
- cleaner rules to attempt removal of malware injected strings<br />
- cleaner batching option to attempt cleaning of previous scan reports<br />
- cleaner rules to remove base64 and gzinflate(base64 injected malware<br />
- daily cron based scanning of all changes in last 24h in user homedirs<br />
- daily cron script compatible with stock RH style systems, Cpanel &amp; Ensim<br />
- kernel based inotify real time file scanning of created/modified/moved files<br />
- kernel inotify monitor that can take path data from STDIN or FILE<br />
- kernel inotify monitor convenience feature to monitor system users<br />
- kernel inotify monitor can be restricted to a configurable user html root<br />
- kernel inotify monitor with dynamic sysctl limits for optimal performance<br />
- kernel inotify alerting through daily and/or optional weekly reports<br />
- e-mail alert reporting after every scan execution (manual &amp; daily)<br />
- path, extension and signature based ignore options<br />
- background scanner option for unattended scan operations<br />
- verbose logging &amp; output of all actions</code></div></div>
<br />
فایل های مخرب قابل شناسایی با Linux Malware Detect :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>Detected Threats:<br />
LMD 1.4.0 has a total of 7,241 (5393 MD5 / 1848 HEX) signatures (before updates), below is a listing of the top 60 threats by prevalence detected by LMD:<br />
base64.inject.unclassed&nbsp;&nbsp;&nbsp;&nbsp; perl.ircbot.xscan<br />
bin.dccserv.irsexxy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perl.mailer.yellsoft<br />
bin.fakeproc.Xnuxer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perl.shell.cbLorD<br />
bin.ircbot.nbot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perl.shell.cgitelnet<br />
bin.ircbot.php3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.cmdshell.c100<br />
bin.ircbot.unclassed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.cmdshell.c99<br />
bin.pktflood.ABC123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.cmdshell.cih<br />
bin.pktflood.osf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.cmdshell.egyspider<br />
bin.trojan.linuxsmalli&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.cmdshell.fx29<br />
c.ircbot.tsunami&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.cmdshell.ItsmYarD<br />
exp.linux.rstb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.cmdshell.Ketemu<br />
exp.linux.unclassed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.cmdshell.N3tshell<br />
exp.setuid0.unclassed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.cmdshell.r57<br />
gzbase64.inject&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.cmdshell.unclassed<br />
html.phishing.auc61&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.defash.buno<br />
html.phishing.hsbc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.exe.globals<br />
perl.connback.DataCha0s&nbsp;&nbsp;&nbsp;&nbsp; php.include.remote<br />
perl.connback.N2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.ircbot.InsideTeam<br />
perl.cpanel.cpwrap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.ircbot.lolwut<br />
perl.ircbot.atrixteam&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.ircbot.sniper<br />
perl.ircbot.bRuNo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.ircbot.vj_denie<br />
perl.ircbot.Clx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.mailer.10hack<br />
perl.ircbot.devil&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.mailer.bombam<br />
perl.ircbot.fx29&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.mailer.PostMan<br />
perl.ircbot.magnum&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.phishing.AliKay<br />
perl.ircbot.oldwolf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.phishing.mrbrain<br />
perl.ircbot.putr4XtReme&nbsp;&nbsp;&nbsp;&nbsp; php.phishing.ReZulT<br />
perl.ircbot.rafflesia&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.pktflood.oey<br />
perl.ircbot.UberCracker&nbsp;&nbsp;&nbsp;&nbsp; php.shell.rc99<br />
perl.ircbot.xdh&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.shell.shellcomm</code></div></div>
<br />
برای نصب از طریق ssh از دستورات زیر استفاده کنید.<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>cd /tmp<br />
<br />
wget http://www.rfxn.com/downloads/maldetect-current.tar.gz<br />
<br />
tar xfz maldetect-current.tar.gz<br />
<br />
cd maldetect-*<br />
<br />
./install.sh</code></div></div>
<br />
بعد از نصب میتوانید از کامندهای (دستورات) مختلف موجود برای این پلاگین برای اسکن و مانیتورینگ و قرنطینه و ارسال گزارشات به ایمیل و غیره استفاده کنید.<br />
<br />
در لینک توضیحات میتونید همه این دستورات را مشاهده و استفاده کنید :<br />
<br />
دیدن لینک ها برای شما امکان پذیر نیست. لطفا <a href="https://forums.parsjoom.ir/member.php?action=register">ثبت نام کنید</a> یا <a href="https://forums.parsjoom.ir/member.php?action=login">وارد حساب خود شوید</a> تا بتوانید لینک ها را ببینید.<br />
<br />
<br />
در لینک بالا تمامی دستورات و توضیحات موجود است و من نیز در تگ کد در زیر قرار دادم تا بتونید با کپی و پیست در یک فایل متنی استفاده کنید.<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>Linux Malware Detect v1.4.1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(C) 2002-2013, R-fx Networks &lt;proj@r-fx.org&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(C) 2013, Ryan MacDonald &lt;ryan@r-fx.org&gt;<br />
inotifywait (C) 2007, Rohan McGovern &lt;rohan@mcgovern.id.au&gt;<br />
This program may be freely redistributed under the terms of the GNU GPL v2<br />
<br />
::::::::::::::::::::::::::::::::::<br />
<br />
:: CONTENTS ::<br />
.: 1 [ DESCRIPTION ]<br />
.: 2 [ FEATURES ]<br />
.: 3 [ THREAT SOURCE DATA ]<br />
.: 4 [ RELEASE UPDATES ]<br />
.: 4.1 [ SIGNATURE UPDATES ]<br />
.: 5 [ DETECTED THREATS ]<br />
.: 6 [ THREAT SHARING ]<br />
.: 7 [ CONFIGURATION ]<br />
.: 8 [ IGNORE OPTIONS ]<br />
.: 9 [ CLI USAGE ]<br />
.: 10 [ CRON DAILY ]<br />
.: 11 [ INOTIFY MONITORING ]<br />
.: 12 [ MODSECURITY2 UPLOAD SCANNING ]<br />
.: 13 [ CLEANER RULES ]<br />
<br />
::::::::::::::::::::::::::::::::::<br />
<br />
.: 1 [ DESCRIPTION ]<br />
<br />
Linux Malware Detect (LMD) is a malware scanner for Linux released under the <br />
GNU GPLv2 license, that is designed around the threats faced in shared hosted <br />
environments. It uses threat data from network edge intrusion detection <br />
systems to extract malware that is actively being used in attacks and <br />
generates signatures for detection. In addition, threat data is also derived <br />
from user submissions with the LMD checkout feature and from malware <br />
community resources. The signatures that LMD uses are MD5 file hashes and HEX <br />
pattern matches, they are also easily exported to any number of detection <br />
tools such as ClamAV.<br />
<br />
The driving force behind LMD is that there is currently limited availability <br />
of open source/restriction free tools for Linux systems that focus on malware <br />
detection and more important that get it right. Many of the AV products that <br />
perform malware detection on Linux have a very poor track record of detecting <br />
threats, especially those targeted at shared hosted environments.<br />
<br />
The threat landscape in shared hosted environments is unique from that of the <br />
standard AV products detection suite in that they are detecting primarily OS <br />
level trojans, rootkits and traditional file-infecting viruses but missing <br />
the ever increasing variety of malware on the user account level which serves <br />
as an attack platform.<br />
<br />
Using the CYMRU malware hash registry, which provides malware detection data <br />
for 30 major AV packages, we can demonstrate this short coming in current <br />
threat detection. The following is an analysis of the core MD5 hashes (5,393) <br />
in LMD 1.4.1 and the percentage of major AV products that currently detect <br />
the hashes.<br />
<br />
KNOWN MALWARE:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1029<br />
% AV DETECT (AVG):&nbsp;&nbsp;48<br />
% AV DETECT (LOW):&nbsp;&nbsp;58<br />
% AV DETECT (HIGH): 80<br />
UNKNOWN MALWARE:&nbsp;&nbsp;&nbsp;&nbsp;4364<br />
<br />
What this information means, is that of the of the 5,393 hashes, 81% or 4,364 <br />
malware items are NOT detected / known by the top 30 major AV packages. The 1,029 <br />
malware items that are known / detected have an average of a 48% detection <br />
rate among major AV packages with a low / high margin of detection at 58 and <br />
80 percent respective. This clearly demonstrates the lacking capacity in currently<br />
available tools and why it is important that something fill the void, especially<br />
in the Linux shared hosted environment.<br />
<br />
.: 2 [ FEATURES ]<br />
<br />
- MD5 file hash detection for quick threat identification<br />
- HEX based pattern matching for identifying threat variants<br />
- statistical analysis component for detection of obfuscated threats (e.g: base64)<br />
- integrated detection of ClamAV to use as scanner engine for improved performance<br />
- integrated signature update feature with -u|--update<br />
- integrated version update feature with -d|--update-ver<br />
- scan-recent option to scan only files that have been added/changed in X days<br />
- scan-all option for full path based scanning<br />
- checkout option to upload suspected malware to rfxn.com for review / hashing<br />
- full reporting system to view current and previous scan results<br />
- quarantine queue that stores threats in a safe fashion with no permissions<br />
- quarantine batching option to quarantine the results of a current or past scans<br />
- quarantine restore option to restore files to original path, owner and perms<br />
- quarantine suspend account option to Cpanel suspend or shell revoke users<br />
- cleaner rules to attempt removal of malware injected strings<br />
- cleaner batching option to attempt cleaning of previous scan reports<br />
- cleaner rules to remove base64 and gzinflate(base64 injected malware<br />
- daily cron based scanning of all changes in last 24h in user homedirs<br />
- daily cron script compatible with stock RH style systems, Cpanel &amp; Ensim<br />
- kernel based inotify real time file scanning of created/modified/moved files<br />
- kernel inotify monitor that can take path data from STDIN or FILE<br />
- kernel inotify monitor convenience feature to monitor system users<br />
- kernel inotify monitor can be restricted to a configurable user html root<br />
- kernel inotify monitor with dynamic sysctl limits for optimal performance<br />
- kernel inotify alerting through daily and/or optional weekly reports<br />
- HTTP upload scanning through mod_security2 inspectFile hook<br />
- e-mail alert reporting after every scan execution (manual &amp; daily)<br />
- path, extension and signature based ignore options<br />
- background scanner option for unattended scan operations<br />
- verbose logging &amp; output of all actions<br />
<br />
<br />
.: 3 [ THREAT SOURCE DATA ]<br />
<br />
The defining difference with LMD is that it doesn't just detect malware based <br />
on signatures/hashes that someone else generated but rather it is an <br />
encompassing project that actively tracks in the wild threats and generates <br />
signatures based on those real world threats that are currently circulating.<br />
<br />
There are four main sources for malware data that is used to generate LMD <br />
signatures:<br />
- Network Edge IPS: The network I manage hosts over 35,000 web sites and as <br />
such receives a large amount of daily abuse, all of which is logged by our <br />
network edge IPS. The IPS events are processed to extract malware url's, <br />
decode POST payload and base64/gzip encoded abuse data and ultimately that <br />
malware is retrieved, reviewed, classified and then signatures generated as <br />
appropriate. The vast majority of LMD signatures have been derived from IPS <br />
extracted data.<br />
- Community Data: Data is aggregated from multiple community malware websites <br />
such as clean-mx and malwaredomainlist then processed to retrieve new <br />
malware, review, classify and then generate signatures.<br />
- ClamAV: The HEX &amp; MD5 detection signatures from ClamAV are monitored for <br />
relevant updates that apply to the target user group of LMD and added to the <br />
project as appropriate. To date there has been roughly 400 signatures ported <br />
from ClamAV while the LMD project has contributed back to ClamAV by <br />
submitting over 1,100 signatures and continues to do so on an ongoing basis.<br />
- User Submission: LMD has a checkout feature that allows users to submit <br />
suspected malware for review, this has grown into a very popular feature and <br />
generates on average about 30-50 submissions per week.<br />
<br />
.: 4 [ RELEASE UPDATES ]<br />
Updates to the release version of LMD are not automatically installed but can<br />
be installed using the --update-ver option. There is good reasons that this is<br />
not done automatically and I really dont feel like listing them so just think<br />
about it a bit.<br />
<br />
The latest changes in the release version can always be viewed at:<br />
http://www.rfxn.com/appdocs/CHANGELOG.maldetect<br />
<br />
.: 4.1 [ SIGNATURE UPDATES ]<br />
<br />
The LMD signatures are updated typically once per day or more frequently<br />
depending on incoming threat data from the LMD checkout feature, IPS malware<br />
extraction and other sources. The updating of signatures in LMD installations<br />
is performed daily through the default cron.daily script with the --update<br />
option, which can be run manually at any time.<br />
<br />
An RSS &amp; XML data source is available for tracking malware threat updates:<br />
RSS Recent Signatures: http://www.rfxn.com/api/lmd<br />
XML Recent Signatures: http://www.rfxn.com/api/lmd?id=recent<br />
XML All Signatures:&nbsp;&nbsp;&nbsp;&nbsp;http://www.rfxn.com/api/lmd?id=all<br />
<br />
.: 5 [ DETECTED THREATS ]<br />
<br />
LMD 1.4.1 has a total of 7,241 (5393 MD5 / 1848 HEX) signatures (before updates),<br />
below is a listing of the top 60 threats by prevalence detected by LMD.<br />
<br />
base64.inject.unclassed&nbsp;&nbsp;&nbsp;&nbsp;bin.dccserv.irsexxy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bin.fakeproc.Xnuxer<br />
bin.ircbot.nbot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bin.ircbot.php3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bin.ircbot.unclassed<br />
bin.pktflood.ABC123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bin.pktflood.osf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin.trojan.linuxsmalli<br />
c.ircbot.tsunami&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exp.linux.rstb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exp.linux.unclassed<br />
exp.setuid0.unclassed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gzbase64.inject&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;html.phishing.auc61<br />
html.phishing.hsbc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perl.connback.DataCha0s&nbsp;&nbsp;perl.connback.N2<br />
perl.cpanel.cpwrap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perl.mailer.yellsoft&nbsp;&nbsp;&nbsp;&nbsp; perl.ircbot.atrixteam<br />
perl.ircbot.bRuNo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;perl.ircbot.Clx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;perl.ircbot.devil<br />
perl.ircbot.fx29&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perl.ircbot.magnum&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perl.ircbot.oldwolf<br />
perl.ircbot.putr4XtReme&nbsp;&nbsp;&nbsp;&nbsp;perl.ircbot.rafflesia&nbsp;&nbsp;&nbsp;&nbsp;perl.ircbot.UberCracker<br />
perl.ircbot.xdh&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;perl.ircbot.xscan&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;perl.shell.cbLorD<br />
perl.shell.cgitelnet&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.cmdshell.c100&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.cmdshell.c99<br />
php.cmdshell.cih&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.cmdshell.egyspider&nbsp;&nbsp; php.cmdshell.fx29<br />
php.cmdshell.ItsmYarD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.cmdshell.Ketemu&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.cmdshell.N3tshell<br />
php.cmdshell.r57&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.cmdshell.unclassed&nbsp;&nbsp; php.defash.buno<br />
php.exe.globals&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.include.remote&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.ircbot.InsideTeam<br />
php.ircbot.lolwut&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.ircbot.sniper&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.ircbot.vj_denie<br />
php.mailer.10hack&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.mailer.bombam&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.mailer.PostMan<br />
php.phishing.AliKay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php.phishing.mrbrain&nbsp;&nbsp;&nbsp;&nbsp; php.phishing.ReZulT<br />
php.pktflood.oey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.shell.rc99&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php.shell.shellcomm<br />
<br />
.: 6 [ THREAT SHARING ]<br />
<br />
I am a firm believer in not reinventing the wheel, for my own sanity or that<br />
of others. As such all unique theat data is submitted to CYMRU &amp; ClamAV so<br />
that the open source and anti-malware community at large can grow from this<br />
project.<br />
<br />
.: 7 [ CONFIGURATION ]<br />
<br />
The configuration of LMD is handled through /usr/local/maldetect/conf.maldet<br />
and all options are well commented for ease of configuration.<br />
<br />
By default LMD has the auto-qurantine of files disabled, this will mean that<br />
YOU WILL NEED TO ACT on any threats detected or pass the SCANID to the '-q'<br />
option to batch quarantine the results. To change this please set quar_hits=1<br />
in conf.maldet.<br />
<br />
.: 8 [ IGNORE OPTIONS ]<br />
<br />
There are four ignore files available and they break down as follows:<br />
<br />
/usr/local/maldetect/ignore_paths<br />
A line spaced file for paths that are to be execluded from search results<br />
 Sample ignore entry:<br />
 /home/user/public_html/cgi-bin<br />
<br />
/usr/local/maldetect/ignore_file_ext<br />
A line spaced file for file extensions to be excluded from search results<br />
 Sample ignore entry:<br />
 .js<br />
 .css<br />
<br />
/usr/local/maldetect/ignore_sigs<br />
A line spaced file for signatures that should be removed from file scanning<br />
 Sample ignore entry:<br />
 base64.inject.unclassed<br />
<br />
/usr/local/maldetect/ignore_inotify<br />
A line spaced file for regexp paths that are excluded from inotify monitoring<br />
 Sample ignore entry:<br />
 ^/home/user&#36;<br />
 ^/var/tmp/#sql_.*&#92;.MYD&#36;<br />
<br />
.: 9 [ CLI USAGE ]<br />
<br />
Once LMD is installed it can be run through the 'maldet' command, the '--help'<br />
option gives a detailed summary of usage options:<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-b, --background<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Execute operations in the background, ideal for large scans<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e.g: maldet -b -r /home/?/public_html 7<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-u, --update<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Update malware detection signatures from rfxn.com<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-d, --update-ver<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Update the installed version from rfxn.com<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-m, --monitor USERS|PATHS|FILE<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Run maldet with inotify kernel level file create/modify monitoring<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If USERS is specified, monitor user homedirs for UID's &gt; 500<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If FILE is specified, paths will be extracted from file, line spaced<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If PATHS are specified, must be comma spaced list, NO WILDCARDS!<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --monitor users<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --monitor /root/monitor_paths<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --monitor /home/mike,/home/ashton<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-k, --kill<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Terminate inotify monitoring service<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-r, --scan-recent PATH DAYS<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Scan files created/modified in the last X days (default: 7d, wildcard: ?)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet -r /home/?/public_html 2<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-a, --scan-all PATH<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Scan all files in path (default: /home, wildcard: ?)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet -a /home/?/public_html<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-c, --checkout FILE<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Upload suspected malware to rfxn.com for review &amp; hashing into signatures<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-l, --log<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; View maldet log file events<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-e, --report SCANID email<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; View scan report of most recent scan or of a specific SCANID and optionally<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e-mail the report to a supplied e-mail address<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --report<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --report list<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --report 050910-1534.21135<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --report SCANID user@domain.com<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-s, --restore FILE|SCANID<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Restore file from quarantine queue to orginal path or restore all items from<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a specific SCANID<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --restore /usr/local/maldetect/quarantine/config.php.23754<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --restore 050910-1534.21135<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-q, --quarantine SCANID<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Quarantine all malware from report SCANID<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --quarantine 050910-1534.21135<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-n, --clean SCANID<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Try to clean &amp; restore malware hits from report SCANID<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --clean 050910-1534.21135<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-U, --user USER<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set execution under specified user, ideal for restoring from user quarantine or<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to view user reports.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --user nobody --report<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --user nobody --restore 050910-1534.21135<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-co, --config-option VAR1=VALUE,VAR2=VALUE,VAR3=VALUE<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set or redefine the value of conf.maldet config options<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --config-option email_addr=you@domain.com,quar_hits=1<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-p, --purge<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Clear logs, quarantine queue, session and temporary data.<br />
<br />
.: 10 [ CRON DAILY ]<br />
<br />
The cronjob installed by LMD is located at /etc/cron.daily/maldet and is used<br />
to perform a daily update of signatures, keep the session, temp and quarantine<br />
data to no more than 14d old and run a daily scan of recent file system changes.<br />
<br />
The daily scan supports Ensim virtual roots or standard Linux /home*/user paths,<br />
such as Cpanel. The default is to just scan the web roots daily, which breaks<br />
down as /home*/*/public_html or on Ensim /home/virtual/*/fst/var/www/html and<br />
/home/virtual/*/fst/home/*/public_html.<br />
<br />
If you are running monitor mode, the daily scans will be skipped and instead a<br />
daily report will be issued for all monitoring events. If you need to scan<br />
additional paths, you should review the cronjob and edit it accordingly.<br />
<br />
.: 11 [ INOTIFY MONITORING ]<br />
<br />
The inotify monitoring feature is designed to monitor users in real-time for<br />
file creation/modify/move operations. This option requires a kernel that<br />
supports inotify_watch (CONFIG_INOTIFY) which is found in kernels 2.6.13+<br />
and CentOS/RHEL 5 by default. If you are running CentOS 4 you should consider<br />
an inbox upgrade with: http://www.rfxn.com/upgrade-centos-4-8-to-5-3/<br />
<br />
There are three modes that the monitor can be executed with and they relate<br />
to what will be monitored, they are USERS|PATHS|FILES. <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --monitor users<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --monitor /root/monitor_paths<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.g: maldet --monitor /home/mike,/home/ashton<br />
<br />
The options break down as follows:<br />
USERS -&nbsp;&nbsp;The users option will take the homedirs of all system users that are<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; above inotify_minuid and monitor them. If inotify_webdir is set then<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the users webdir, if it exists, will only be monitored.<br />
PATHS -&nbsp;&nbsp;A comma spaced list of paths to monitor<br />
FILE&nbsp;&nbsp;-&nbsp;&nbsp;A line spaced file list of paths to monitor<br />
<br />
Once you start maldet in monitor mode, it will preprocess the paths based on<br />
the option specified followed by starting the inotify process. The starting of<br />
the inotify process can be a time consuming task as it needs to setup a monitor<br />
hook for every file under the monitored paths. Although the startup process can<br />
impact the load temporarily, once the process has started it maintains all of<br />
its resources inside kernel memory and has a very small userspace footprint in<br />
memory or cpu usage.<br />
<br />
The scanner component of the monitor watches for notifications from the inotify<br />
process and batches items to be scanned, by default, every 30 seconds. If you<br />
need tighter control of the scanning timer, you can edit inotify_stime in<br />
conf.maldet.<br />
<br />
The alerting of file hits under monitor mode is handled through a daily report<br />
instead of sending an email on every hit. The cron.daily job installed by LMD<br />
will call an --alert-daily flag and send an alert for the last days hits. There<br />
is also an --alert-weekly option that can be used, simply edit the cron at<br />
/etc/cron.daily/maldet and change the --alert-daily to --alert-weekly.<br />
<br />
Terminating the inotify monitoring is done by passing the '-k|--kill-monitor'<br />
option to maldet, it will touch a file handle monitored by maldet and on the<br />
next waking cycle of the monitor service, it will terminate itself and all<br />
inotify processes.<br />
<br />
.: 12 [ MODSECURITY2 UPLOAD SCANNING ]<br />
<br />
The support for HTTP upload scanning is provided through mod_security2's inspectFile hook.<br />
This feature allows for a validation script to be used in permitting or denying an upload. <br />
<br />
The convenience script to faciliate this is called modsec.sh and is located in the<br />
/usr/local/maldetect installation path. The default setup is to run a standard maldet scan<br />
with no clamav support, no cleaner rule executions and quarantining enabled; these options<br />
are set in the interest of performance vs accuracy which is a fair tradeoff. <br />
<br />
The scan options can be modified in the modsec.sh file if so desired, the default<br />
scan options are as follows:<br />
--config-option quar_hits=1,quar_clean=0,clamav_scan=0 --modsec -a "&#36;file"<br />
<br />
There is a tangible performance difference in disabling clamav scanning in this usage<br />
scenario. The native LMD scanner engine is much faster than the clamav scanner engine<br />
in single file scans by a wide margin. A single file scan using clamav takes roughly<br />
3sec on average while the LMD scanner engine takes 0.5sec or less.<br />
<br />
To enable upload scanning with mod_security2 you must set enable the public_scan option<br />
in conf.maldet (public_scan=1) then add the following rules to your mod_security2 <br />
configuration. These rules are best placed in your modsec2.user.conf file on cpanel servers<br />
or at the top of the appropraite rules file for your setup.<br />
<br />
/usr/local/apache/conf/modsec2.user.conf (or similar mod_security2 rules file):<br />
SecRequestBodyAccess On<br />
SecRule FILES_TMPNAMES "@inspectFile /usr/local/maldetect/modsec.sh" &#92;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"log,auditlog,deny,severity:2,phase:2,t:none"<br />
<br />
A restart of the HTTPd service is required following these changes.<br />
<br />
When an upload takes place that is determined to be malware, it will be rejected and an<br />
entry will appear in the mod_security2 SecAuditLog file. On cpanel servers and most<br />
configurations this is the modsec_audit.log located under /usr/local/apache/logs or <br />
/var/log/httpd.<br />
<br />
The log entry will appear similar to the following:<br />
Message: Access denied with code 406 (phase 2). File "/tmp/20111120-....-file" rejected by<br />
the approver script "/usr/local/maldetect/modsec.sh": 0 maldet: {HEX}php.cmdshell.r57.317<br />
/tmp/20111120-....-file [file "/usr/local/apache/conf/modsec2.user.conf"] [line "3"]<br />
[severity "CRITICAL"]<br />
<br />
The default alerting options will apply and an e-mail will be sent when hits are found. This<br />
can be changed in the modsec.sh script by editing the --config-option values.<br />
<br />
To disable alerts append email_alert=0 to the --config-option values:<br />
--config-option quar_hits=1,quar_clean=0,clamav_scan=0,email_alert=0<br />
<br />
To change the e-mail address for alerts on upload hits, append email_addr=you@domain.com<br />
to the --config-option values:<br />
--config-option quar_hits=1,quar_clean=0,clamav_scan=0,email_addr=you@domain.com<br />
<br />
The nature of uploads is such that they are performed either under the user that the HTTP<br />
service is running as or under that of a system user in an suexec style setup (i.e: phpsuexec).<br />
This required a change to the way LMD stores session, temporary and quarantine data to allow<br />
for non-root users to perform scans.<br />
<br />
Given that the maldetect installation path is owned by user root, we either need to set a pub<br />
path world writable (777) or populate the pub path with user owned paths. It was undesirable<br />
to set any path world writable and as such a feature to populate path data was created. This<br />
feature is controlled with the --mkpubpaths flag and is executed from cron every 10 minutes,<br />
it will only execute if the public_scan variable is enabled in conf.maldet. As such, it is<br />
important to make sure the public_scan variable is set to enabled (1) in conf.maldet and it is<br />
advised to run 'maldet --mkpubpaths' manually to prepopulate the user paths. There after, the<br />
cron will ensure new users have paths created no later than 10 minutes after creation.<br />
<br />
All non-root scans, such as those performed under mod_security2, will be stored under the<br />
/usr/local/maldetect/pub/username directory tree. The quarantine paths are relative to the user<br />
that exectues the scan, so user nobody would be under pub/nobody/quar/. The actual paths<br />
for where files are quarantined and the user which executed the scan, can be verified in the<br />
e-mail reports for upload hits.<br />
<br />
To restore files quarantined under non-root users, you must pass the -U|--user option to LMD,<br />
for example if user nobody quarantined a file you would like to restore, it can be restored as<br />
follows:<br />
maldet --user nobody /usr/local/maldetect/pub/nobody/quar/20111120-file-SFwTeu.22408<br />
<br />
Or, as always the scan ID can be used to restore<br />
maldet --user nobody 112011-0032.13771<br />
<br />
.: 13 [ CLEANER RULES ]<br />
<br />
The cleaner function looks for signature-named rules under the clean/ path,<br />
these rules can consist of any command that is designed to clean a file of<br />
malware. A cleaner rule must result in a file being able to pass a scan<br />
without tripping a HIT otherwise it will classify the clean action as FAILED.<br />
<br />
Let us assume for a moment we have malware that we want to clean and it trips<br />
with the signature "{HEX}php.cmdshell.r57.89". The actual signature string in<br />
this is "php.cmdshell.r57", the "{HEX}" just defines the format and ".89" is<br />
the variant number. So, to create a clean rule for php.cmdshell.r57 we would<br />
add a file 'clean/php.cmdshell.r57' and this would be executed against any<br />
file that hits on the signature of the same name.<br />
<br />
The actual contents of the rule should be a single line command that will be<br />
executed against the hit file, for example the execution looks something like:<br />
<br />
YOUR_COMMAND MALWARE_FILE<br />
<br />
So, for a string based malware injection you could easily throw in a 'sed -i'<br />
into the rule file with the appropriate pattern to strip the string(s) from<br />
the file. Once the clean command has run, a rescan will be performed on the<br />
file and if it causes causes a hit, the clean will be marked as FAILED. A<br />
successful clean ALWAYS results in the file being restored if possible to<br />
its original path, owner and mode.<br />
<br />
An important note is that the cleaner function is a subfunction of the<br />
quarantine, so if the quarantine is disabled then by default, malware hits<br />
will not have clean attempts made. There are two ways around this, apart from<br />
the obvious of turning on quarantine and rescanning (which is a waste of time).<br />
The best way is to enable the quarantine and then use the -q|--quarantine flag<br />
to batch through the scan results, which will quarantine and clean files. The<br />
second is to use the -n|--clean flag which will try to clean files in place,<br />
be that in the quarantine or the files original path, wherever it can be found.<br />
<br />
e.g: maldet -q SCANID<br />
e.g: maldet --clean SCANID<br />
129.121.132.46</code></div></div>
<br />
برای مثال برای اسکن پوشه public_html همه سایت های موجود برروی سرور میتونید از دستور زیر از طریق اس اس اچ استفاده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>maldet -a /home/?/public_html</code></div></div>
<br />
برای فعال کردن مانیتورینگ این پلاگین برای همه یوزرها از دستور زیر استفاده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>maldet --monitor users</code></div></div>
<br />
دستور بالا مانیتورینگ را برای همه یوزرها فعال میکند.اگر میخواهید مانیتورینگ رو فقط برای یوزر یا یوزرهای دلخواه فعال کنید میتوانید از دستور زیر استفاده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>maldet --monitor /home/ganji,/home/parsjoom</code></div></div>
<br />
مسیر فایل کانفینگ برای ایجاد تغییرات و تنظیمات :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>/usr/local/maldetect/conf.maldet</code></div></div>
<br />
اگر میخواهید فایل هایی که در چند روز گذشته تغییر داده شده اند و یا دستکاری شده اند اطلاع پیدا کنید از دستور زیر برای اسکن از طریق اس اس اچ استفاده کنید :<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>maldet -r /home/?/public_html 2</code></div></div>
<br />
بجای عدد دو در بالا عدد دلخواه را وارد کنید .<br />
<br />
این پلاگین بعد از هراسکن گزارش اسکن را در فایل لاگ با شماره ای ذخیره میکند و برای ارسال لاگ اسکن به ایمیل دیخواه میتوانید از دستور زیر استفاده کنید:<br />
<br />
<div class="codeblock">
<div class="title">کد: <br />
</div><div class="body" dir="ltr"><code>maldet --report SCANID user@domain.com</code></div></div>
<br />
بجای اسکن آی دی باید آی دی که بعد از اسکن کامل در putty به شما نمایش داده میشود را وارد کنید و برای کپی کردن ای دی از پوتی فقط کافیست ای دی را سلکت کنید و کلیک راست موس را بفشارید تا کلیبورد شما کپی شود.<br />
بجای ایمیل هم ایمیل دلخواه را وارد کنید<br />
<br />
شما میتوانید با مطالعه راهنمای پلاگین Linux Malware Detect ازتمامی امکانات و دستورات این پلاگین مطلع شوید.<br />
برخی ایرادهایی که به این پلاگین گرفته میشود حذف برخی از فایل های سالم است که آلوده شناخته نشده است اما در صورتی هم که چنین مشکلی وجود داشته باشد باز هم این پلاگین بسیار کاربردی و ضروری است.<br />
شما میتوانید یوزرها رو ابتدا اسکن کنید و فایل هایی که در لاگ برای شما ارسال میشود را چک کنید و درصورتی که فایل مشکوکی دیدید حذف و بقیه را دست نخورده باقی بزارید.]]></content:encoded>
		</item>
	</channel>
</rss>