Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
View Poll Results: What should I add first?
Auto-Run 18 56.25%
Better UI 14 43.75%
Widget 0 0%
Other? 0 0%
Voters: 32. You may not vote on this poll

 
Post Reply+
Tip us?
 
x942
Old
(Last edited by x942; 9th May 2013 at 05:38 AM.)
#1  
Senior Member - OP
Thanks Meter 246
Posts: 928
Join Date: Jan 2012

 
DONATE TO ME
Arrow [APP][GPL]SecDroid - Android Hardening [BETA]

SecDroid V 1.1 Beta
Created by x942
Released under GPLV2

Introduction

Quote:
SecDroid hardens the android kernel by disable certain binaries that have internet access or can be used as an attack vector. Some of these are:
SSH
SSHD
Telnet
NC (net cat)
Ping
PM (Package Manager - Can't install apps via CLI/ADB)
ADBD (ADB is disabled until reboot)

And by securing the TCP Stack using Systctl (Until Next boot).
More info

Why disable ADB and PM?

Quote:
ADB and PM are both disabled to help prevent an attacker from being able to install apps via the command line or adb shell. Both of these are potential attack vectors. You can install apps via the playstore and GUI
What license is this released under?

Quote:
All code is released under GPLV2 Unless otherwise noted.

Thanks/Credits

Quote:
Many Thanks to Adam Outler for his Shell class that was used in this project (until V0.3 - See Changelog).
Many thanks to XDA-TV and XDA for their hard work!
And thanks to SANS for their Android Security whitepaper which inspired this project.
Downloads:


Please note this is my first android app. As such bugs may be present and the code may not be pretty. If anyone can help me make it look nicer and more efficient that would be great

Quote:
UPDATE 2013-05-06:
Version 1.1 Beta

* Fixed script to properly handled errors on some devices
* Fixed layout issue
* Added disable bluetooth feature (Disabled bluetoothd )
* Added enable bluetooth feautre ( Reverses above action)
----------------------
X942



SecDroid


Guardian Project Installer

Current: Nexus 4 AOKP W/ SecDroid and Guardian Project Installer
The Following 62 Users Say Thank You to x942 For This Useful Post: [ Click to Expand ]
 
koz
Old
#2  
Senior Member
Thanks Meter 8
Posts: 168
Join Date: Mar 2006
x942 - Thanks for letting me know this is in the works - looks really promising. With things like SSH/SSHD being disabled, will apps (like Connectbot) still work, allowing for SSH/SSHD on a per app basis?
TMO Galaxy S3
ROM:
FrostyJB_4.1.1-v11.6

(RETIRED) TMO HD2
ROM:
Android [July 24th] [Sense 3.5] Energy [NAND]
RADIO:
2.15.50.14
HSPL: 2.08

(RETIRED)Wizard
IPL/SPL: 3.08
Radio: 3.02.11
ROM : Teamup Tech iPhone Killer - WM 6.5.3
Build 28205
Caffinated to:247mhz
 
Richy19
Old
#3  
Junior Member
Thanks Meter 0
Posts: 23
Join Date: Jan 2012
Does this just disable these things during the current running session?
IE after rebooting it does everything go back to normal?
If not is there a way to enable them again?
 
fluxgfx
Old
#4  
Senior Member
Thanks Meter 66
Posts: 620
Join Date: Jun 2011
Location: Ottawa

 
DONATE TO ME
I have to assume that it's a good thing if the application wasn't able to find any of the noted application to harden.
Attached Thumbnails
Click image for larger version

Name:	2013-01-11 09.08.28.jpg
Views:	3455
Size:	49.6 KB
ID:	1635824  
Phone: Galaxy Note 2
Carrier: Bell
Root status: Rooted
Rom: Carbon
Retired devices: HDZ, Xperia Arc, Xperia Arc S, HTC One X, HTC One X+, Samsung Galaxy S. Samsung Galaxy S3, Nexus 4
 
Mika83AC
Old
#5  
Mika83AC's Avatar
Senior Member
Thanks Meter 67
Posts: 170
Join Date: Apr 2012
Location: Aachen
Quote:
Originally Posted by fluxgfx View Post
I have to assume that it's a good thing if the application wasn't able to find any of the noted application to harden.
I assume it's not a good thing because the applications are missing (which is unlikely) or they are moved to a different location
Samsung Galaxy S3 (GT-I9300)
Recovery: PhilZ 4.87 Touch Enhanced CWM 6.0.2.8
Kernel: CM 10.1 Stock
Rom: CM 10.1 Nightlys (temasek's)
 
hisname
Old
#6  
hisname's Avatar
Senior Member
Thanks Meter 190
Posts: 1,021
Join Date: Jul 2012
Location: Singapore
http://www.xda-developers.com/androi...with-secdroid/

featured on Xda portal!
 
Phone:HTC Desire S
Android Version:4.2.1
ROM:Andromadus Test build CM10.1
Tweaks:Supercharger Script+Pimp my ROM+Adrenaline engine=Powerful and Mighty Desire S
S-off by revolutionary
Hboot 6.98.1002
Radio-3805.06.02.03_M


Tablet: ASUS EE Pad Slider SL101
Recovery:cwm-6.0.1.4-touch-hybrid
Android Version:4.1.2
ROM:10-20121119-NIGHTLY-tf101
Kernel:2.6.39.4 CyanogenMod_DHD-g74007d5
inky-ghost@cyanogenmod#1
 
PnoT
Old
#7  
Member
Thanks Meter 1
Posts: 87
Join Date: Jun 2011
So the "hardening" is only applied after running the app and upon next boot everything should be back to normal correct?
 
fluxgfx
Old
(Last edited by fluxgfx; 11th January 2013 at 04:21 PM.)
#8  
Senior Member
Thanks Meter 66
Posts: 620
Join Date: Jun 2011
Location: Ottawa

 
DONATE TO ME
Quote:
Originally Posted by Mika83AC View Post
I assume it's not a good thing because the applications are missing (which is unlikely) or they are moved to a different location
I agree with you. Although after a manual verification the application in questions aren't located on the device in any folders Internel, External or within any of the root folder.

Cheers,
Phone: Galaxy Note 2
Carrier: Bell
Root status: Rooted
Rom: Carbon
Retired devices: HDZ, Xperia Arc, Xperia Arc S, HTC One X, HTC One X+, Samsung Galaxy S. Samsung Galaxy S3, Nexus 4
 
WattB006
Old
#9  
WattB006's Avatar
Senior Member
Thanks Meter 41
Posts: 269
Join Date: Sep 2011
Location: Omaha
Quote:
Originally Posted by fluxgfx View Post
I agree with you. Although after a manual verification the application in questions aren't located on the device in any folders Internel, External or within any of the root folder.

Cheers,
I also has the same issue when running the app and I confirmed the apps are not located on my device.
White Samsung Galaxy S III -- Hyperdrive RLS12 S4 Theme
Asus Nexus 7 -- Vanilla RootBox
Samsung Galaxy Tab 2 7" - 4.1.1 Leak Rooted
LG Thrill -- Thrill Seeker 3.0 w/ Promethius Kernel
Kindle Fire -- CM10 AlienDroid V2.0
 
bushako
Old
#10  
bushako's Avatar
Senior Member
Thanks Meter 142
Posts: 690
Join Date: Mar 2007
Location: Offshore
First of all thank you so much for the effort to keep our devices safe. Im using Droidwall to block certain programs and would like to install SecDroid but not sure if it would conflict in any way. Could you please confirm?
GALAXY N7100 White, 16Gig + 16Gig SD card
SlimBean v5 - 4.2.2

GALAXY i9300 White, 16Gig
Latest Omega Rom


+ RedPill/Siyah
Kernel


Guides for OEM Replacement Parts - Galaxy Note 2

[GUIDE] [HOW TO] Boot Into Safe Mode


 
If I have helped you in anyway feel free to hit the Thanks button

 
Post Reply+
Tags
apk, gpl compliant, security, shell
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...