系統安全筆記



Secure Computing

seccomp is a Linux feature that makes unused system calls inaccessible to apps. This means that apps cannot make these system calls and therefore protects the OS from being exploited by potentially harmful apps.

seccomp (short for secure computing mode)
is a computer security facility in the Linux kernel. seccomp allows a process to make a one-way transition into a "secure" state where it cannot make any system calls except exit(), sigreturn(), read() and write() to already-open file descriptors. Should it attempt any other system calls, the kernel will terminate the process with SIGKILL or SIGSYS.[1][2] In this sense, it does not virtualize the system's resources but isolates the process from them entirely.



ASLR & KASKR

Address Space Layout Randomization (ASLR) randomizes the memory addresses that apps and services use every time they run. The SELinux Kernel also uses Address Space Layout Randomization (KASLR) and works by randomizing the location where the kernel code is loaded on each boot. In a typical attack on an app vulnerability, the attacker needs to know the memory address of the vulnerable code to launch an exploit. ASLR loads the app in random memory addresses at every launch, so an attacker is prevented from knowing an exact memory address to attack.



Position-independent executables (PIE).


Android requires all dynamically linked executables to support Position-independent executables (PIE). This enhances Android’s implementation of ASLR by relocating a program every time it opens, thus making it difficult for an attacker to know even if the program is running.





Control flow integrity (CFI).

CFI is a security mechanism that prevents attackers from hijacking functions and pieces of code from apps and using those apps and their permissions to perform malicious actions. Many vulnerabilities are exploited by attackers changing the normal control flow of an application to perform arbitrary malicious activities with all the privileges of the exploited application, such as privileged permission escalation to gain access to data. CFI disallows changes to the original control flow of a program.



Lockdown mode


To turn on Lockdown mode:
  • Go to the Settings app and tap Display.
  • Scroll down to Advanced and tap Lock screen display.
  • Then tap Lockdown mode.
The device can then be locked by pressing and holding the power button and tapping Lockdown on the side panel that appears.

When a phone is in lockdown mode, the key for work data is deleted so it cannot be accessed by unauthorized users.



Google Play Protect.

Google Play Protect (GPP) is the most widely deployed mobile threat protection service in the world. Here are some stats on Google Play Protect:


  • 2.5 billion devices protected.

  • Google Play Protect scans and verifies more than 50 billion applications daily.
  • More than 300 million Potentially Harmful Apps (PHAs) installs are blocked annually from offline scanning.
  • Integrates with cloud-based components that push updates which constantly improve the functionality.

  • Scans are done before installation.

  • Protects from PHAs being installed from unknown sources, because GPP scans any app that is installed, not just those from Google Play.

  • Device scans are done automatically daily and harmful PHAs are automatically removed or disabled.

  • Users can perform manual scans.

  • Works offline.

留言

Google Search

推薦內容橫式

本月熱門文章

綠能貪污原來大多是國民黨民眾代表

國民黨李煥家族 李慶中李慶珠甲等特考舞弊 李慶華詐領助理補助款 李慶安雙重國籍

中國新病毒 HMPV 人類偏肺病毒 要戴口罩 勤洗手

八炯統戰影片心得 千萬要謹慎 勿掉入金錢陷阱

國防安全:中華人民共和國吸收中華民國高階軍官作為內應

2024年5月至12月台中市非自然死亡列表 從南寧, KK .. 到台中西屯?

立法院過去幾週都被國民黨及黃國昌挾持 無法討論法案 還要直接一路通過

讓你懷疑自已的記憶力以及語文能力的經典討論串:無心插柳柳橙汁

統戰影片心得 舔共台灣人做的是會得罪雙方人民的事情

柯文哲:當選後將改掉黑金槍毒不得參選」排黑條款。 台灣民眾黨有哪些人受影響

這個網誌中的熱門文章

Android應用開發豆知識:利用 adb 安裝 apk 到裝置上

Android 中文輸入法 官方版 ! Gboard - Google 鍵盤 開始支援注音輸入啦

Google Play 推薦Android app 誠徵App排行榜

北京故宮首訪,一窺清宮秘史 大玉兒 & 甄嬛

[家教][社會觀察] 建中教我的事 沒上建中被父母親折磨? 在建中到底是如何 ...

[FAANG面試] Amazon/AWS 領導力準則 14 Amazon Leadership Principles

Acer ICONIA Smart S300 更新後越來越好 Acer也有出手機?!

[品質控制] 什麼是Sanity test ? 軟體測試常見名詞整理 包含不同部門的測試人員負責範圍

新鮮人找工作:職場名詞解釋 AE FAE Pre-sales Post-sales