Skip to main content

DeepObfusCode: Source Code Obfuscation through Sequence-to-Sequence Networks

  • Conference paper
  • First Online:
Intelligent Computing

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 284))

Abstract

The paper explores a novel methodology in source code obfuscation through the application of text-based recurrent neural network (RNN) encoder-decoder models in ciphertext generation and key generation. Sequence-to-sequence models are incorporated into the model architecture to generate obfuscated code, generate the deobfuscation key, and live execution. Quantitative benchmark comparison to existing obfuscation methods indicate significant improvement in stealth and execution cost for the proposed solution, and experiments regarding the model’s properties yield positive results regarding its character variation, dissimilarity to the original codebase, and consistent length of obfuscated code.

S. Datta—Work performed at the Hong Kong University of Science and Technology.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Code repository: https://github.com/dattasiddhartha/DeepObfusCode.

  2. 2.

    Dataset: https://github.com/dattasiddhartha-1/obfuscation-dataset.

References

  1. Popa, M.: Techniques of program code obfuscation for secure software. J. Mob. Embed. Distrib. Syst. 3, 205–219 (2011)

    Google Scholar 

  2. Viticchie, A., et al.: Assessment of Source Code Obfuscation Techniques (2017). https://arxiv.org/pdf/1704.02307.pdf

  3. Schneider, J., Locher, T.: Obfuscation using Encryption (2016). https://arxiv.org/pdf/1612.03345.pdf

  4. Baluja, S.: Hiding images in plain sight: deep steganography. In: Advances in Neural Information Processing Systems (2017)

    Google Scholar 

  5. Benoit, S.: ConvCrypt (2018). https://github.com/santient/convcrypt

  6. Ismail, A., Galal-Edeen, H., Khattab, S., Mohamed, A.E., Bahtity, M.E.: Satellite image encryption using neural networks backpropagation. In: International Conference on Computer Theory and Applications (2012)

    Google Scholar 

  7. Hesamifard, E., Takabi, H., Ghasemi, M.: CryptoDL: Deep Neural Networks over Encrypted Data (2017). https://arxiv.org/pdf/1711.05189.pdf

  8. Cho, K., et al.: Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation (2014). https://arxiv.org/pdf/1406.1078.pdf

  9. Ahmadi, S.: Attention-based Encoder-Decoder Networks for Spelling and Grammatical Error Correction (2018). https://arxiv.org/pdf/1810.00660.pdf

  10. Khatri, C., Singh, G., Parikh, N.: Abstractive and extractive text summarization using document context vector and recurrent neural networks. In: KDD Deep Learning Day (2018)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Siddhartha Datta .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Datta, S. (2021). DeepObfusCode: Source Code Obfuscation through Sequence-to-Sequence Networks. In: Arai, K. (eds) Intelligent Computing. Lecture Notes in Networks and Systems, vol 284. Springer, Cham. https://doi.org/10.1007/978-3-030-80126-7_45

Download citation

Publish with us

Policies and ethics