Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

An Android file transparent encryption and decryption method based on a hook

A transparent encryption and decryption, file technology, applied in the direction of file system, file system function, file/folder operation, etc., can solve unsatisfactory, cannot support dynamic loading well, cannot support ELF internal function hook and optimized compilation Questions about calling function addresses directly

Inactive Publication Date: 2019-04-30
SUNINFO INFORMATION TECH
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] At present, most hook schemes are implemented by PLT hook (ELF-hook), and the hook is implemented based on replacing the function address in the PLT table, which cannot support the hook called between ELF internal functions and the situation where the optimized compiler directly calls the function address
Moreover, this solution does not support dynamic loading very well. Since the timing of ELF loading cannot be determined, the program must constantly monitor whether there is a new ELF loading, and then perform frequent hook operations.
[0005] In addition, in terms of platform support, currently only a single armeabi and armeabi-v7a platform is supported, which cannot satisfy other platforms such as x86 and x86_64

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • An Android file transparent encryption and decryption method based on a hook

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The following examples of the present invention are described in detail below. The following examples are implemented on the premise of the technical solution of the present invention, and detailed implementation methods and specific operating procedures are provided, but the protection scope of the present invention is not limited to the following the embodiment.

[0032] In a preferred embodiment, the schematic flow chart of the hook-based Android file transparent encryption and decryption method of the present invention is as follows: figure 1 As shown, it includes at least one of the following four processes, such as any one, any two, any three or all four:

[0033] (1) When the file is opened for the first time, judge in the encapsulated openat function: perform regular matching through the opened file path and file format, find out the file that needs to be encrypted, write the encrypted file header information and perform SM4 on it Algorithm encryption, and save...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an Android file transparent encryption and decryption method based on a hook. Security protection such as checking prevention, scanning prevention and leakage prevention is carried out on a sensitive file. Inline-is used in the invention. According to the hook technology, a code instruction in a memory is directly modified to skip a hook function, so that the problem of a PLT hook is well solved; Combination inline The hook technology is used for re-packaging the file operation interface; and the file is encrypted in combination with the national cryptographic block symmetric cryptographic algorithm SM4, so that various attacks for the block cryptographic algorithm can be effectively resisted, and meanwhile, the whole platform architecture of Android can be well supported.

Description

technical field [0001] The invention belongs to the field of mobile Internet security, in particular to a method for transparently encrypting and decrypting Android files based on hooks. Background technique [0002] The current transparent encryption and decryption systems are mainly implemented on the PC side of Windows and Linux, and most of them are encryption and decryption in user mode, which is cumbersome to operate and the encryption effect is not ideal. However, with the development of the mobile Internet and the rapid growth of mobile terminal users, the demand for file security on the mobile terminal is becoming more and more urgent. [0003] Since the Android platform is based on the Linux kernel, the corresponding file operation interfaces are the same, so using the hook technology under the Linux platform can be used to realize the secondary packaging of these interfaces, and then provide support for file encryption and decryption operations. [0004] At prese...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F21/60G06F21/62G06F16/17G06F16/16G06F16/172
CPCG06F21/602G06F21/6209G06F2221/2107
Inventor 耿鹏飞王志龙张鹤
Owner SUNINFO INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products