Autore Topic: macSubstrate - Tool For Interprocess Code Injection On macOS  (Letto 82 volte)

0 Utenti e 1 Visitatore stanno visualizzando questo topic.

Offline Flavio58

macSubstrate - Tool For Interprocess Code Injection On macOS
« Risposta #1 il: Agosto 03, 2018, 02:02:27 am »
Advertisement
macSubstrate - Tool For Interprocess Code Injection On macOS


macSubstrate is a platform tool for interprocess code injection on macOS, with the similar function to Cydia Substrate on iOS. Using macSubstrate, you can inject your plugins (.bundle or .framework) into a mac app (including sandboxed apps) to tweak it in the runtime.
  • All you need is to get or create plugins for your target app.
     
  • No trouble with modification and codesign for the original target app.
     
  • No more work after the target app is updated.
     
  • Super easy to install or uninstall a plugin.
     
  • Loading plugins automatically whenever the target app is relaunched.
     
  • Providing a GUI app to make injection much easier.

Prepare
  •   Disable SIP
     
  •   Why should disable SIP
     
    System Integrity Protection is a new security policy that applies to every running process, including privileged code and code that runs out of the sandbox. The policy extends additional protections to components on disk and at run-time, only allowing system binaries to be modified by the system installer and software updates. Code injection and runtime attachments to system binaries are no longer permitted.

Usage
  1. download macSubstrate.app, put into /Applications and launch it.
     
    StatusBar
     
  2. grant authorization if needed.
     
  3. install a plugin by importing or dragging into macSubstrate.
      ToInstall
     
  4. launch the target app.
      step 3 and step 4 can be switched
      Once a plugin is installed by macSubstrate, it will take effect immediately. But if you want it to work whenever the target app is relaunched or macOS is restarted, you need to keep macSubstrate running and allow it to automatically launch at login.
     
  5. uninstall a plugin when you do not need it anymore.
      Installed
     

Plugin
macSubstrate supports plugins of .bundle or .framework, so you just need to create a valid .bundle or .framework file. The most important thing is to add a key macSubstratePlugin into the info.plist, with the dictionary value:
                                 
KeyValue
TargetAppBundleIDthe target app's CFBundleIdentifier, this tells macSubstrate which app to inject.
Descriptionbrief description of the plugin
AuthorNameauthor name of the plugin
AuthorEmailauthor email of the plugin
Please check the demo plugins demo.bundle and demo.framework for details.

Xcode Templates
macSubstrate also provides Xcode Templates to help you create plugins conveniently:
  1.   ln -fhs ./macSubstratePluginTemplate ~/Library/Developer/Xcode/Templates/macSubstrate\ Plugin
     
  2. Launch Xcode, and there will be 2 new plugin templates for you.
     

Security
  1. SIP is a new security policy on macOS, which will help to keep you away from potential security risk. Disable it means you will lose the protection from SIP.
  2. If you install a plugin from a developer, you should be responsible for the security of the plugin. If you do not trust it, please do not install it. macSubstrate will help to verify the code signature of a plugin, and I suggest you to scan it using VirusTotal. Anyway, macSubstrate is just a tool, and it is your choice to decide what plugin to install.



Source: macSubstrate - Tool For Interprocess Code Injection On macOS


Consulente in Informatica dal 1984

Software automazione, progettazione elettronica, computer vision, intelligenza artificiale, IoT, sicurezza informatica, tecnologie di sicurezza militare, SIGINT. 

Facebook:https://www.facebook.com/flaviobernardotti58
Twitter : https://www.twitter.com/Flavio58

Cell:  +39 366 3416556

f.bernardotti@deeplearningitalia.eu

#deeplearning #computervision #embeddedboard #iot #ai

 

Related Topics

  Oggetto / Aperto da Risposte Ultimo post
0 Risposte
112 Visite
Ultimo post Aprile 13, 2018, 03:51:14 am
da Flavio58
0 Risposte
89 Visite
Ultimo post Giugno 29, 2018, 12:05:34 pm
da Flavio58
0 Risposte
69 Visite
Ultimo post Luglio 23, 2018, 08:10:34 am
da Flavio58
0 Risposte
78 Visite
Ultimo post Agosto 16, 2018, 10:02:21 pm
da Flavio58
0 Risposte
2 Visite
Ultimo post Gennaio 26, 2020, 12:51:00 am
da Ruggero Respigo

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326