بهبودهای امنیتی

اندروید به طور مداوم توانایی ها و امکانات امنیتی خود را بهبود می بخشد. لیست بهبودها را با انتشار در ناوبری سمت چپ مشاهده کنید.

اندروید 14

Every Android release includes dozens of security enhancements to protect users. Here are some of the major security enhancements available in Android 14:

  • Hardware-assisted AddressSanitizer (HWASan), introduced in Android 10, is a memory error detection tool similar to AddressSanitizer. Android 14 brings significant improvements to HWASan. Learn how it helps prevent bugs from making it into Android releases, HWAddressSanitizer
  • In Android 14, starting with apps that share location data with third-parties, the system runtime permission dialog now includes a clickable section that highlights the app's data-sharing practices, including information such as why an app may decide to share data with third parties.
  • Android 12 introduced an option to disable 2G support at the modem level, which protects users from the inherent security risk from 2G's obsolete security model. Recognizing how critical disabling 2G could be for enterprise customers, Android 14 enables this security feature in Android Enterprise, introducing support for IT admins to restrict the ability of a managed device to downgrade to 2G connectivity.
  • Added support to reject null-ciphered cellular connections, ensuring that circuit-switched voice and SMS traffic is always encrypted and protected from passive over-the-air interception. Learn more about Android's program to harden cellular connectivity.
  • Added support for multiple IMEIs
  • Since Android 14, AES-HCTR2 is the preferred mode of filenames encryption for devices with accelerated cryptography instructions.
  • Cellular connectivity
  • Documentation added for Android Safety Center
  • If your app targets Android 14 and uses Dynamic Code Loading (DCL), all dynamically-loaded files must be marked as read-only. Otherwise, the system throws an exception. We recommend that apps avoid dynamically loading code whenever possible, as doing so greatly increases the risk that an app can be compromised by code injection or code tampering.

Check out our full AOSP release notes and the Android Developer features and changes list.

اندروید 13

Every Android release includes dozens of security enhancements to protect users. Here are some of the major security enhancements available in Android 13:

  • Android 13 adds multi-document presentation support. This new Presentation Session interface enables an application to do a multi-document presentation, something which isn't possible with the existing API. For further information, refer to Identity Credential
  • In Android 13, intents originating from external apps are delivered to an exported component if and only if the intents match their declared intent-filter elements.
  • Open Mobile API (OMAPI) is a standard API used to communicate with a device's Secure Element. Before Android 13, only applications and framework modules had access to this interface. By converting it to a vendor stable interface, HAL modules are also capable of communicating with the secure elements through the OMAPI service. For more information, see OMAPI Vendor Stable Interface.
  • As of Android 13-QPR, shared UIDs are deprecated. Users of Android 13 or higher should put the line `android:sharedUserMaxSdkVersion="32"` in their manifest. This entry prevents new users from getting a shared UID. For further information on UIDs, see Application signing.
  • Android 13 added support Keystore symmetric cryptographic primitives such as AES (Advanced Encryption Standard), HMAC (Keyed-Hash Message Authentication Code), and asymmetric cryptographic algorithms (including Elliptic Curve, RSA2048, RSA4096, and Curve 25519)
  • Android 13 (API level 33) and higher supports a runtime permission for sending non-exempt notifications from an app. This gives users control over which permission notifications they see.
  • Added per-use prompt for apps requesting access to all device logs, giving users the ability to allow or deny access.
  • introduced the Android Virtualization Framework (AVF), which brings together different hypervisors under one framework with standardized APIs. It provides secure and private execution environments for executing workloads isolated by hypervisor.
  • Introduced APK signature scheme v3.1 All new key rotations that use apksigner will use the v3.1 signature scheme by default to target rotation for Android 13 and higher.

Check out our full AOSP release notes and the Android Developer features and changes list.

اندروید 12

هر نسخه اندروید شامل ده ها پیشرفت امنیتی برای محافظت از کاربران است. در اینجا برخی از مهم‌ترین پیشرفت‌های امنیتی موجود در اندروید 12 آورده شده است:

  • Android 12 BiometricManager.Strings API را معرفی می‌کند که رشته‌های محلی شده را برای برنامه‌هایی که از BiometricPrompt برای احراز هویت استفاده می‌کنند، ارائه می‌کند. این رشته‌ها به‌منظور آگاهی از دستگاه‌ها و ارائه ویژگی‌های بیشتر در مورد نوع(های) احراز هویت می‌باشند. اندروید 12 همچنین از حسگرهای اثر انگشت زیر نمایشگر پشتیبانی می کند
  • پشتیبانی از حسگرهای اثر انگشت زیر نمایشگر اضافه شده است
  • معرفی زبان تعریف رابط اثر انگشت اندروید (AIDL)
  • پشتیبانی از Face AIDL جدید
  • معرفی Rust به عنوان زبانی برای توسعه پلتفرم
  • گزینه ای برای کاربران برای اعطای دسترسی فقط به مکان تقریبی آنها اضافه شد
  • هنگامی که یک برنامه از دوربین یا میکروفون استفاده می کند، نشانگرهای حریم خصوصی در نوار وضعیت اضافه شده است
  • هسته محاسباتی خصوصی اندروید (PCC)
  • گزینه ای برای غیرفعال کردن پشتیبانی 2G اضافه شده است

اندروید 11

Every Android release includes dozens of security enhancements to protect users. For a list of some of the major security enhancements available in Android 11, see the Android Release Notes.

اندروید 10

هر نسخه اندروید شامل ده ها پیشرفت امنیتی برای محافظت از کاربران است. اندروید 10 شامل چندین پیشرفت امنیتی و حریم خصوصی است. برای مشاهده لیست کامل تغییرات اندروید 10 به یادداشت های انتشار اندروید 10 مراجعه کنید.

امنیت

ضدعفونی کننده مرزها

اندروید 10 از BoundsSanitizer (BoundSan) در بلوتوث و کدک ها استفاده می کند. BoundSan از ضدعفونی کننده محدوده UBSan استفاده می کند. این کاهش در سطح هر ماژول فعال است. این کمک می کند تا اجزای حیاتی اندروید را ایمن نگه دارد و نباید غیرفعال شود. BoundSan در کدک های زیر فعال است:

  • libFLAC
  • libavcdec
  • libavcenc
  • libhevcdec
  • libmpeg2
  • libopus
  • libvpx
  • libspeexresampler
  • libvorbisidec
  • libaac
  • libxaac

حافظه فقط اجرا

به‌طور پیش‌فرض، بخش‌های کد اجرایی برای باینری‌های سیستم AArch64 فقط اجرا (غیرقابل خواندن) به‌عنوان یک کاهش سخت‌تر در برابر حملات استفاده مجدد از کد به‌موقع علامت‌گذاری می‌شوند. کدی که داده‌ها و کدها را با هم ترکیب می‌کند و کدهایی که به طور هدفمند این بخش‌ها را بررسی می‌کنند (بدون اینکه ابتدا بخش‌های حافظه را به‌عنوان قابل خواندن دوباره نقشه‌برداری کنند) دیگر عمل نمی‌کنند. اگر برنامه بخواهد بخش‌های کد کتابخانه‌های سیستم فقط اجرا (XOM) را در حافظه بخواند، بدون اینکه ابتدا بخش را به‌عنوان خوانا علامت‌گذاری کند، برنامه‌های دارای SDK هدف Android 10 (سطح API 29 یا بالاتر) تحت تأثیر قرار می‌گیرند.

دسترسی گسترده

عوامل اعتماد، مکانیسم اساسی که توسط مکانیسم‌های احراز هویت ثالث مانند قفل هوشمند استفاده می‌شود، فقط می‌تواند در Android 10 بازگشایی شود. نمایندگان اعتماد دیگر نمی‌توانند قفل دستگاه قفل شده را باز کنند و فقط می‌توانند دستگاه را حداکثر تا چهار ساعت باز نگه دارند.

احراز هویت چهره

احراز هویت چهره به کاربران این امکان را می دهد که قفل دستگاه خود را به سادگی با نگاه کردن به جلوی دستگاه خود باز کنند. اندروید 10 پشتیبانی از یک پشته احراز هویت چهره جدید را اضافه می کند که می تواند به طور ایمن فریم های دوربین را پردازش کند و امنیت و حریم خصوصی را در حین احراز هویت روی سخت افزار پشتیبانی شده حفظ کند. اندروید 10 همچنین یک راه آسان برای پیاده سازی های منطبق با امنیت برای فعال کردن یکپارچه سازی برنامه برای تراکنش هایی مانند بانکداری آنلاین یا سایر خدمات فراهم می کند.

پاکسازی سرریز عدد صحیح

اندروید 10 پاکسازی سرریز عدد صحیح (IntSan) را در کدک های نرم افزاری فعال می کند. مطمئن شوید که عملکرد پخش برای کدک‌هایی که در سخت‌افزار دستگاه پشتیبانی نمی‌شوند، قابل قبول است. IntSan در کدک های زیر فعال است:

  • libFLAC
  • libavcdec
  • libavcenc
  • libhevcdec
  • libmpeg2
  • libopus
  • libvpx
  • libspeexresampler
  • libvorbisidec

اجزای سیستم مدولار

اندروید 10 برخی از اجزای سیستم اندروید را ماژولار می کند و آنها را قادر می سازد خارج از چرخه انتشار عادی اندروید به روز شوند. برخی از ماژول ها عبارتند از:

OEMCrypto

اندروید 10 از OEMCrypto API نسخه 15 استفاده می کند.

اسکودو

Scudo یک تخصیص دهنده حافظه پویا در حالت کاربر است که به گونه ای طراحی شده است که در برابر آسیب پذیری های مرتبط با heap انعطاف پذیرتر باشد. این استانداردهای اولیه تخصیص و توزیع C و همچنین C++ اولیه را ارائه می دهد.

ShadowCallStack

ShadowCallStack (SCS) یک حالت ابزار دقیق LLVM است که با ذخیره آدرس بازگشتی یک تابع در یک نمونه ShadowCallStack به طور جداگانه در پیش‌نویس توابع غیربرگی و بارگیری آدرس برگشتی از نمونه ShadowCallStack در برابر بازنویسی آدرس برگشتی (مانند سرریزهای بافر پشته) محافظت می‌کند. اپیلوگ عملکرد

WPA3 و Wi-Fi Enhanced Open

Android 10 پشتیبانی از Wi-Fi Protected Access 3 (WPA3) و استانداردهای امنیتی Wi-Fi Enhanced Open را اضافه می کند تا حریم خصوصی و استحکام بهتری در برابر حملات شناخته شده ارائه دهد.

حریم خصوصی

دسترسی به برنامه هنگام هدف قرار دادن Android 9 یا پایین تر

اگر برنامه شما روی Android 10 یا بالاتر اجرا می‌شود اما اندروید 9 (سطح API 28) یا پایین‌تر را هدف قرار می‌دهد، پلتفرم رفتار زیر را اعمال می‌کند:

  • اگر برنامه شما عنصر <uses-permission> را برای ACCESS_FINE_LOCATION یا ACCESS_COARSE_LOCATION اعلام کند، سیستم به طور خودکار یک عنصر <uses-permission> را برای ACCESS_BACKGROUND_LOCATION در حین نصب اضافه می‌کند.
  • اگر برنامه شما ACCESS_FINE_LOCATION یا ACCESS_COARSE_LOCATION را درخواست کند، سیستم به طور خودکار ACCESS_BACKGROUND_LOCATION به درخواست اضافه می‌کند.

محدودیت های فعالیت پس زمینه

با شروع اندروید 10، این سیستم محدودیت هایی را برای شروع فعالیت ها از پس زمینه اعمال می کند. این تغییر رفتار به کاهش وقفه‌ها برای کاربر کمک می‌کند و کاربر را کنترل بیشتری بر آنچه روی صفحه نمایش نشان داده می‌شود، حفظ می‌کند. تا زمانی که برنامه شما فعالیت های خود را در نتیجه مستقیم تعامل کاربر شروع می کند، برنامه شما به احتمال زیاد تحت تأثیر این محدودیت ها قرار نمی گیرد.
برای کسب اطلاعات بیشتر در مورد جایگزین توصیه شده برای شروع فعالیت ها از پس زمینه، به راهنمای نحوه هشدار به کاربران از رویدادهای حساس به زمان در برنامه خود مراجعه کنید.

فراداده دوربین

اندروید 10 وسعت اطلاعاتی را که متد getCameraCharacteristics() به طور پیش فرض برمی گرداند تغییر می دهد. به‌ویژه، برنامه شما باید مجوز CAMERA را داشته باشد تا بتواند به ابرداده‌های بالقوه خاص دستگاه که در مقدار برگشتی این روش گنجانده شده است، دسترسی داشته باشد.
برای کسب اطلاعات بیشتر در مورد این تغییرات، به بخش مربوط به فیلدهای دوربینی که به مجوز نیاز دارند مراجعه کنید.

داده های کلیپ بورد

اگر برنامه شما ویرایشگر روش ورودی پیش‌فرض (IME) نباشد یا برنامه‌ای باشد که در حال حاضر فوکوس دارد، برنامه شما نمی‌تواند به داده‌های کلیپ‌بورد در Android 10 یا بالاتر دسترسی داشته باشد.

مکان دستگاه

برای پشتیبانی از کنترل اضافی که کاربران بر دسترسی برنامه به اطلاعات مکان دارند، Android 10 مجوز ACCESS_BACKGROUND_LOCATION را معرفی می کند.
برخلاف مجوزهای ACCESS_FINE_LOCATION و ACCESS_COARSE_LOCATION ، مجوز ACCESS_BACKGROUND_LOCATION تنها زمانی که برنامه در پس‌زمینه اجرا می‌شود، بر دسترسی برنامه به مکان تأثیر می‌گذارد. برنامه‌ای در نظر گرفته می‌شود که به موقعیت مکانی در پس‌زمینه دسترسی دارد، مگر اینکه یکی از شرایط زیر برآورده شود:

ذخیره سازی خارجی

به‌طور پیش‌فرض، به برنامه‌هایی که Android 10 و بالاتر را هدف قرار می‌دهند، به فضای ذخیره‌سازی خارجی یا فضای ذخیره‌سازی محدوده دسترسی دارند. چنین برنامه‌هایی می‌توانند انواع فایل‌های زیر را در یک دستگاه ذخیره‌سازی خارجی بدون نیاز به درخواست مجوزهای کاربر مرتبط با فضای ذخیره‌سازی ببینند:

  • فایل‌های موجود در دایرکتوری مخصوص برنامه، با استفاده از getExternalFilesDir() قابل دسترسی هستند.
  • عکس‌ها، ویدیوها و کلیپ‌های صوتی که برنامه از فروشگاه رسانه ایجاد کرده است.

برای کسب اطلاعات بیشتر در مورد فضای ذخیره‌سازی با دامنه، و همچنین نحوه اشتراک‌گذاری، دسترسی و اصلاح فایل‌هایی که در دستگاه‌های ذخیره‌سازی خارجی ذخیره می‌شوند، به راهنمای نحوه مدیریت فایل‌ها در حافظه خارجی و دسترسی و اصلاح فایل‌های رسانه مراجعه کنید.

تصادفی سازی آدرس MAC

در دستگاه‌هایی که اندروید 10 یا بالاتر را اجرا می‌کنند، سیستم به‌طور پیش‌فرض آدرس‌های MAC را به‌صورت تصادفی ارسال می‌کند.
اگر برنامه شما یک مورد استفاده سازمانی را مدیریت می‌کند، پلتفرم APIهایی را برای چندین عملیات مرتبط با آدرس‌های MAC ارائه می‌کند:

  • به دست آوردن آدرس MAC تصادفی : برنامه های مالک دستگاه و برنامه های مالک نمایه می توانند آدرس MAC تصادفی اختصاص داده شده به یک شبکه خاص را با فراخوانی getRandomizedMacAddress() بازیابی کنند.
  • به دست آوردن آدرس MAC واقعی و کارخانه ای: برنامه های مالک دستگاه می توانند آدرس MAC سخت افزاری واقعی دستگاه را با فراخوانی getWifiMacAddress() بازیابی کنند. این روش برای ردیابی ناوگان دستگاه ها مفید است.

شناسه های دستگاه غیر قابل تنظیم

از Android 10، برنامه‌ها باید مجوز ممتاز READ_PRIVILEGED_PHONE_STATE را داشته باشند تا بتوانند به شناسه‌های غیرقابل تنظیم دستگاه، که شامل IMEI و شماره سریال هستند، دسترسی داشته باشند.

اگر برنامه شما مجوز ندارد و به هر حال سعی می‌کنید اطلاعاتی درباره شناسه‌های غیرقابل تنظیم مجدد بخواهید، پاسخ پلتفرم براساس نسخه SDK هدف متفاوت است:

  • اگر برنامه شما Android 10 یا بالاتر را هدف قرار دهد، یک SecurityException رخ می دهد.
  • اگر برنامه شما Android 9 (سطح API 28) یا پایین‌تر را هدف قرار می‌دهد، اگر برنامه دارای مجوز READ_PHONE_STATE باشد، این روش داده‌های null یا placeholder را برمی‌گرداند. در غیر این صورت، یک SecurityException رخ می دهد.

تشخیص فعالیت بدنی

Android 10 مجوز زمان اجرا android.permission.ACTIVITY_RECOGNITION را برای برنامه‌هایی که نیاز به شناسایی تعداد قدم‌های کاربر یا طبقه‌بندی فعالیت بدنی کاربر، مانند پیاده‌روی، دوچرخه‌سواری، یا حرکت در وسیله نقلیه دارند، معرفی می‌کند. این طراحی شده است تا به کاربران نحوه استفاده از داده‌های حسگر دستگاه در تنظیمات را مشاهده کنند.
برخی از کتابخانه‌های موجود در سرویس‌های Google Play، مانند Activity Recognition API و Google Fit API ، نتایجی را ارائه نمی‌دهند مگر اینکه کاربر این مجوز را به برنامه شما داده باشد.
تنها حسگرهای داخلی دستگاه که به شما نیاز به اعلام این مجوز دارند، سنسورهای گام شمار و ردیاب گام هستند.
اگر برنامه شما Android 9 (سطح API 28) یا پایین‌تر را هدف قرار می‌دهد، سیستم به طور خودکار مجوز android.permission.ACTIVITY_RECOGNITION را در صورت نیاز به برنامه شما اعطا می‌کند، اگر برنامه شما هر یک از شرایط زیر را داشته باشد:

  • فایل مانیفست شامل مجوز com.google.android.gms.permission.ACTIVITY_RECOGNITION است.
  • فایل مانیفست شامل مجوز android.permission.ACTIVITY_RECOGNITION نیست .

اگر system-auto مجوز android.permission.ACTIVITY_RECOGNITION را اعطا کند، پس از اینکه برنامه خود را برای هدف قرار دادن Android 10 به‌روزرسانی کردید، برنامه شما این مجوز را حفظ می‌کند. با این حال، کاربر می‌تواند هر زمان که بخواهد در تنظیمات سیستم این مجوز را لغو کند.

محدودیت های سیستم فایل /proc/net

در دستگاه‌هایی که Android 10 یا بالاتر را اجرا می‌کنند، برنامه‌ها نمی‌توانند /proc/net دسترسی داشته باشند که شامل اطلاعاتی درباره وضعیت شبکه دستگاه است. برنامه هایی که نیاز به دسترسی به این اطلاعات دارند، مانند VPN ها، باید از کلاس NetworkStatsManager یا ConnectivityManager استفاده کنند.

گروه‌های مجوز از رابط کاربری حذف شدند

از اندروید 10، برنامه‌ها نمی‌توانند نحوه گروه‌بندی مجوزها را در رابط کاربری جستجو کنند.

حذف وابستگی مخاطبین

با شروع اندروید 10، این پلتفرم اطلاعات وابستگی مخاطبین را ردیابی نمی کند. در نتیجه، اگر برنامه شما در مخاطبین کاربر جستجو کند، نتایج بر اساس فراوانی تعامل مرتب نمی‌شوند.
راهنمای مربوط به ContactsProvider حاوی اطلاعیه‌ای است که فیلدها و روش‌های خاصی را توصیف می‌کند که در همه دستگاه‌های شروع شده در Android 10 منسوخ شده‌اند .

دسترسی محدود به محتویات صفحه نمایش

برای محافظت از محتویات صفحه کاربران، Android 10 با تغییر دامنه مجوزهای READ_FRAME_BUFFER ، CAPTURE_VIDEO_OUTPUT ، و CAPTURE_SECURE_VIDEO_OUTPUT از دسترسی بی صدا به محتویات صفحه دستگاه جلوگیری می کند. از اندروید 10، این مجوزها فقط برای دسترسی به امضا هستند.
برنامه‌هایی که نیاز به دسترسی به محتویات صفحه‌نمایش دستگاه دارند باید از MediaProjection API استفاده کنند، که درخواستی از کاربر برای ارائه رضایت نمایش داده می‌شود.

شماره سریال دستگاه USB

اگر برنامه شما Android 10 یا بالاتر را هدف قرار می دهد، برنامه شما نمی تواند شماره سریال را بخواند تا زمانی که کاربر به برنامه شما اجازه دسترسی به دستگاه یا لوازم جانبی USB را بدهد.
برای کسب اطلاعات بیشتر در مورد کار با دستگاه‌های USB، راهنمای نحوه پیکربندی میزبان‌های USB را ببینید.

وای فای

برنامه‌هایی که Android 10 یا بالاتر را هدف قرار می‌دهند، نمی‌توانند Wi-Fi را فعال یا غیرفعال کنند. متد WifiManager.setWifiEnabled() همیشه false را برمی گرداند.
اگر باید از کاربران بخواهید که Wi-Fi را فعال و غیرفعال کنند، از پانل تنظیمات استفاده کنید.

محدودیت در دسترسی مستقیم به شبکه های Wi-Fi پیکربندی شده

برای محافظت از حریم خصوصی کاربر، پیکربندی دستی فهرست شبکه‌های Wi-Fi به برنامه‌های سیستم و کنترل‌کننده‌های خط‌مشی دستگاه (DPC) محدود می‌شود. یک DPC معین می تواند مالک دستگاه یا مالک نمایه باشد.
اگر برنامه شما اندروید 10 یا بالاتر را هدف قرار می‌دهد و یک برنامه سیستمی یا DPC نیست، روش‌های زیر اطلاعات مفیدی را بر نمی‌گردانند:

اندروید 9

هر نسخه اندروید شامل ده ها پیشرفت امنیتی برای محافظت از کاربران است. برای لیستی از برخی از پیشرفت‌های امنیتی اصلی موجود در Android 9، به یادداشت‌های انتشار Android مراجعه کنید.

اندروید 8

Every Android release includes dozens of security enhancements to protect users. Here are some of the major security enhancements available in Android 8.0:

  • Encryption. Added support to evict key in work profile.
  • Verified Boot. Added Android Verified Boot (AVB). Verified Boot codebase supporting rollback protection for use in boot loaders added to AOSP. Recommend bootloader support for rollback protection for the HLOS. Recommend boot loaders can only be unlocked by user physically interacting with the device.
  • Lock screen. Added support for using tamper-resistant hardware to verify lock screen credential.
  • KeyStore. Required key attestation for all devices that ship with Android 8.0+. Added ID attestation support to improve Zero Touch Enrollment.
  • Sandboxing. More tightly sandboxed many components using Project Treble's standard interface between framework and device-specific components. Applied seccomp filtering to all untrusted apps to reduce the kernel's attack surface. WebView is now run in an isolated process with very limited access to the rest of the system.
  • Kernel hardening. Implemented hardened usercopy, PAN emulation, read-only after init, and KASLR.
  • Userspace hardening. Implemented CFI for the media stack. App overlays can no longer cover system-critical windows and users have a way to dismiss them.
  • Streaming OS update. Enabled updates on devices that are are low on disk space.
  • Install unknown apps. Users must grant permission to install apps from a source that isn't a first-party app store.
  • Privacy. Android ID (SSAID) has a different value for each app and each user on the device. For web browser apps, Widevine Client ID returns a different value for each app package name and web origin. net.hostname is now empty and the dhcp client no longer sends a hostname. android.os.Build.SERIAL has been replaced with the Build.SERIAL API which is protected behind a user-controlled permission. Improved MAC address randomization in some chipsets.

اندروید 7

Every Android release includes dozens of security enhancements to protect users. Here are some of the major security enhancements available in Android 7.0:

  • File-based encryption. Encrypting at the file level, instead of encrypting the entire storage area as a single unit, better isolates and protects individual users and profiles (such as personal and work) on a device.
  • Direct Boot. Enabled by file-based encryption, Direct Boot allows certain apps such as alarm clock and accessibility features to run when device is powered on but not unlocked.
  • Verified Boot. Verified Boot is now strictly enforced to prevent compromised devices from booting; it supports error correction to improve reliability against non-malicious data corruption.
  • SELinux. Updated SELinux configuration and increased seccomp coverage further locks down the application sandbox and reduces attack surface.
  • Library load-order randomization and improved ASLR. Increased randomness makes some code-reuse attacks less reliable.
  • Kernel hardening. Added additional memory protection for newer kernels by marking portions of kernel memory as read-only, restricting kernel access to userspace addresses and further reducing the existing attack surface.
  • APK signature scheme v2. Introduced a whole-file signature scheme that improves verification speed and strengthens integrity guarantees.
  • Trusted CA store. To make it easier for apps to control access to their secure network traffic, user-installed certificate authorities and those installed through Device Admin APIs are no longer trusted by default for apps targeting API Level 24+. Additionally, all new Android devices must ship with the same trusted CA store.
  • Network Security Config. Configure network security and TLS through a declarative configuration file.

اندروید 6

Every Android release includes dozens of security enhancements to protect users. Here are some of the major security enhancements available in Android 6.0:

  • Runtime Permissions. Applications request permissions at runtime instead of being granted at App install time. Users can toggle permissions on and off for both M and pre-M applications.
  • Verified Boot. A set of cryptographic checks of system software are conducted prior to execution to ensure the phone is healthy from the bootloader all the way up to the operating system.
  • Hardware-Isolated Security. New Hardware Abstraction Layer (HAL) used by Fingerprint API, Lockscreen, Device Encryption, and Client Certificates to protect keys against kernel compromise and/or local physical attacks
  • Fingerprints. Devices can now be unlocked with just a touch. Developers can also take advantage of new APIs to use fingerprints to lock and unlock encryption keys.
  • SD Card Adoption. Removable media can be adopted to a device and expand available storage for app local data, photos, videos, etc., but still be protected by block-level encryption.
  • Clear Text Traffic. Developers can use a new StrictMode to make sure their application doesn't use cleartext.
  • System Hardening. Hardening of the system via policies enforced by SELinux. This offers better isolation between users, IOCTL filtering, reduce threat of exposed services, further tightening of SELinux domains, and extremely limited /proc access.
  • USB Access Control: Users must confirm to allow USB access to files, storage, or other functionality on the phone. Default is now charge only with access to storage requiring explicit approval from the user.

اندروید 5

5.0

Every Android release includes dozens of security enhancements to protect users. Here are some of the major security enhancements available in Android 5.0:

  • Encrypted by default. On devices that ship with L out-of-the-box, full disk encryption is enabled by default to improve protection of data on lost or stolen devices. Devices that update to L can be encrypted in Settings > Security.
  • Improved full disk encryption. The user password is protected against brute-force attacks using scrypt and, where available, the key is bound to the hardware keystore to prevent off-device attacks. As always, the Android screen lock secret and the device encryption key are not sent off the device or exposed to any application.
  • Android sandbox reinforced with SELinux. Android now requires SELinux in enforcing mode for all domains. SELinux is a mandatory access control (MAC) system in the Linux kernel used to augment the existing discretionary access control (DAC) security model. This new layer provides additional protection against potential security vulnerabilities.
  • Smart Lock. Android now includes trustlets that provide more flexibility for unlocking devices. For example, trustlets can allow devices to be unlocked automatically when close to another trusted device (via NFC, Bluetooth) or being used by someone with a trusted face.
  • Multi user, restricted profile, and guest modes for phones & tablets. Android now provides for multiple users on phones and includes a guest mode that can be used to provide easy temporary access to your device without granting access to your data and apps.
  • Updates to WebView without OTA. WebView can now be updated independent of the framework and without a system OTA. This will allow for faster response to potential security issues in WebView.
  • Updated cryptography for HTTPS and TLS/SSL. TLSv1.2 and TLSv1.1 is now enabled, Forward Secrecy is now preferred, AES-GCM is now enabled, and weak cipher suites (MD5, 3DES, and export cipher suites) are now disabled. See https://developer.android.com/reference/javax/net/ssl/SSLSocket.html for more details.
  • non-PIE linker support removed. Android now requires all dynamically linked executables to support PIE (position-independent executables). This enhances Android’s address space layout randomization (ASLR) implementation.
  • FORTIFY_SOURCE improvements. The following libc functions now implement FORTIFY_SOURCE protections: stpcpy(), stpncpy(), read(), recvfrom(), FD_CLR(), FD_SET(), and FD_ISSET(). This provides protection against memory-corruption vulnerabilities involving those functions.
  • Security Fixes. Android 5.0 also includes fixes for Android-specific vulnerabilities. Information about these vulnerabilities has been provided to Open Handset Alliance members, and fixes are available in Android Open Source Project. To improve security, some devices with earlier versions of Android may also include these fixes.

اندروید 4 و پایین تر

هر نسخه اندروید شامل ده ها پیشرفت امنیتی برای محافظت از کاربران است. موارد زیر برخی از بهبودهای امنیتی موجود در اندروید 4.4 هستند:

  • سندباکس اندروید با SELinux تقویت شده است. اندروید اکنون از SELinux در حالت اعمال استفاده می کند. SELinux یک سیستم کنترل دسترسی اجباری (MAC) در هسته لینوکس است که برای تقویت مدل امنیتی مبتنی بر کنترل دسترسی اختیاری (DAC) استفاده می‌شود. این محافظت اضافی در برابر آسیب پذیری های امنیتی بالقوه فراهم می کند.
  • VPN برای هر کاربر. در دستگاه های چند کاربره، VPN ها اکنون برای هر کاربر اعمال می شوند. این می تواند به کاربر اجازه دهد تا تمام ترافیک شبکه را از طریق VPN بدون تأثیر بر سایر کاربران دستگاه هدایت کند.
  • پشتیبانی از ارائه دهنده ECDSA در AndroidKeyStore. اندروید اکنون یک ارائه دهنده فروشگاه کلید دارد که امکان استفاده از الگوریتم های ECDSA و DSA را فراهم می کند.
  • هشدارهای نظارت بر دستگاه در صورتی که گواهینامه ای به فروشگاه گواهی دستگاه اضافه شده باشد که می تواند امکان نظارت بر ترافیک شبکه رمزگذاری شده را فراهم کند، اندروید به کاربران هشدار می دهد.
  • FORTIFY_SOURCE. اندروید اکنون از FORTIFY_SOURCE سطح 2 پشتیبانی می کند و همه کدها با این حفاظت ها کامپایل شده اند. FORTIFY_SOURCE برای کار با clang ارتقا یافته است.
  • پین کردن گواهی Android 4.4 گواهی‌های جعلی Google را که در ارتباطات امن SSL/TLS استفاده می‌شود، شناسایی کرده و از آن جلوگیری می‌کند.
  • رفع امنیتی اندروید 4.4 همچنین شامل رفع آسیب‌پذیری‌های خاص اندروید است. اطلاعات مربوط به این آسیب‌پذیری‌ها در اختیار اعضای Open Handset Alliance قرار گرفته است و رفع آن در پروژه منبع باز Android موجود است. برای بهبود امنیت، برخی از دستگاه‌های دارای نسخه‌های قبلی Android نیز ممکن است این اصلاحات را داشته باشند.

Every Android release includes dozens of security enhancements to protect users. The following are some of the security enhancements available in Android 4.3:

  • Android sandbox reinforced with SELinux. This release strengthens the Android sandbox using the SELinux mandatory access control system (MAC) in the Linux kernel. SELinux reinforcement is invisible to users and developers, and adds robustness to the existing Android security model while maintaining compatibility with existing applications. To ensure continued compatibility this release allows the use of SELinux in a permissive mode. This mode logs any policy violations, but will not break applications or affect system behavior.
  • No setuid/setgid programs. Added support for filesystem capabilities to Android system files and removed all setuid/setguid programs.  This reduces root attack surface and the likelihood of potential security vulnerabilities.
  • ADB Authentication. Since Android 4.2.2, connections to ADB are authenticated with an RSA keypair. This prevents unauthorized use of ADB where the attacker has physical access to a device.
  • Restrict Setuid from Android Apps. The /system partition is now mounted nosuid for zygote-spawned processes, preventing Android applications from executing setuid programs. This reduces root attack surface and the likelihood of potential security vulnerabilities.
  • Capability bounding. Android zygote and ADB now use prctl(PR_CAPBSET_DROP) to drop unnecessary capabilities prior to executing applications. This prevents Android applications and applications launched from the shell from acquiring privileged capabilities.
  • AndroidKeyStore Provider. Android now has a keystore provider that allows applications to create exclusive use keys. This provides applications with an API to create or store private keys that cannot be used by other applications.
  • KeyChain isBoundKeyAlgorithm. Keychain API now provides a method (isBoundKeyType) that allows applications to confirm that system-wide keys are bound to a hardware root of trust for the device. This provides a place to create or store private keys that cannot be exported off the device, even in the event of a root compromise.
  • NO_NEW_PRIVS. Android zygote now uses prctl(PR_SET_NO_NEW_PRIVS) to block addition of new privileges prior to execution application code. This prevents Android applications from performing operations which can elevate privileges via execve. (This requires Linux kernel version 3.5 or greater).
  • FORTIFY_SOURCE enhancements. Enabled FORTIFY_SOURCE on Android x86 and MIPS and fortified strchr(), strrchr(), strlen(), and umask() calls. This can detect potential memory corruption vulnerabilities or unterminated string constants.
  • Relocation protections. Enabled read only relocations (relro) for statically linked executables and removed all text relocations in Android code. This provides defense in depth against potential memory corruption vulnerabilities.
  • Improved EntropyMixer. EntropyMixer now writes entropy at shutdown / reboot, in addition to periodic mixing. This allows retention of all entropy generated while devices are powered on, and is especially useful for devices that are rebooted immediately after provisioning.
  • Security Fixes. Android 4.3 also includes fixes for Android-specific vulnerabilities. Information about these vulnerabilities has been provided to Open Handset Alliance members and fixes are available in Android Open Source Project. To improve security, some devices with earlier versions of Android may also include these fixes.

Android provides a multi-layered security model described in the Android Security Overview. Each update to Android includes dozens of security enhancements to protect users. The following are some of the security enhancements introduced in Android 4.2:

  • Application verification - Users can choose to enable “Verify Apps" and have applications screened by an application verifier, prior to installation. App verification can alert the user if they try to install an app that might be harmful; if an application is especially bad, it can block installation.
  • More control of premium SMS - Android will provide a notification if an application attempts to send SMS to a short code that uses premium services which might cause additional charges. The user can choose whether to allow the application to send the message or block it.
  • Always-on VPN - VPN can be configured so that applications will not have access to the network until a VPN connection is established. This prevents applications from sending data across other networks.
  • Certificate Pinning - The Android core libraries now support certificate pinning. Pinned domains will receive a certificate validation failure if the certificate does not chain to a set of expected certificates. This protects against possible compromise of Certificate Authorities.
  • Improved display of Android permissions - Permissions have been organized into groups that are more easily understood by users. During review of the permissions, the user can click on the permission to see more detailed information about the permission.
  • installd hardening - The installd daemon does not run as the root user, reducing potential attack surface for root privilege escalation.
  • init script hardening - init scripts now apply O_NOFOLLOW semantics to prevent symlink related attacks.
  • FORTIFY_SOURCE - Android now implements FORTIFY_SOURCE. This is used by system libraries and applications to prevent memory corruption.
  • ContentProvider default configuration - Applications which target API level 17 will have "export" set to "false" by default for each Content Provider, reducing default attack surface for applications.
  • Cryptography - Modified the default implementations of SecureRandom and Cipher.RSA to use OpenSSL. Added SSL Socket support for TLSv1.1 and TLSv1.2 using OpenSSL 1.0.1
  • Security Fixes - Upgraded open source libraries with security fixes include WebKit, libpng, OpenSSL, and LibXML. Android 4.2 also includes fixes for Android-specific vulnerabilities. Information about these vulnerabilities has been provided to Open Handset Alliance members and fixes are available in Android Open Source Project. To improve security, some devices with earlier versions of Android may also include these fixes.

Android یک مدل امنیتی چند لایه ارائه می‌کند که در نمای کلی امنیت Android توضیح داده شده است. هر به روز رسانی اندروید شامل ده ها پیشرفت امنیتی برای محافظت از کاربران است. موارد زیر برخی از بهبودهای امنیتی معرفی شده در نسخه های اندروید 1.5 تا 4.1 هستند:

اندروید 1.5
  • ProPolice برای جلوگیری از بیش از حد بافر پشته (-fstack-protector)
  • safe_iop برای کاهش سرریز اعداد صحیح
  • برنامه های افزودنی برای OpenBSD dlmalloc برای جلوگیری از آسیب پذیری های double free() و جلوگیری از حملات ادغام تکه ای. حملات تثبیت تکه‌ای روشی رایج برای بهره‌برداری از فساد پشته‌ای است.
  • OpenBSD calloc برای جلوگیری از سرریز اعداد صحیح در طول تخصیص حافظه
اندروید 2.3
  • قالب‌بندی حفاظت‌های آسیب‌پذیری رشته (-Wformat-security -Werror=format-security)
  • No eXecute مبتنی بر سخت افزار (NX) برای جلوگیری از اجرای کد در پشته و پشته
  • لینوکس mmap_min_addr برای کاهش تشدید امتیاز عدم ارجاع اشاره گر تهی (بیشتر در Android 4.1 بهبود یافته است)
اندروید 4.0
نشانی Space Layout Randomization (ASLR) برای تصادفی کردن مکان های کلیدی در حافظه
اندروید 4.1
  • پشتیبانی از PIE (قابل اجرا مستقل از موقعیت).
  • جابجایی‌های فقط خواندنی / صحافی فوری (-Wl,-z,relro -Wl,-z,now)
  • dmesg_restrict فعال است (جلوگیری از لو رفتن آدرس های هسته)
  • kptr_restrict فعال است (جلوگیری از لو رفتن آدرس های هسته)