Skip to main content
Erschienen in: Automated Software Engineering 1/2024

01.05.2024

Test-suite-guided discovery of least privilege for cloud infrastructure as code

verfasst von: Ryo Shimizu, Yuna Nunomura, Hideyuki Kanuka

Erschienen in: Automated Software Engineering | Ausgabe 1/2024

Einloggen

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Infrastructure as code (IaC) for the cloud, which automatically configures a system’s cloud environment from source code, is an important practice thanks to its efficient, reproducible provisioning. On a cloud IaC definition (template), developers must carefully manage permission settings to minimize the risk of cyber-attacks. To this end, least privilege on IaC templates, i.e., the assignment of a necessary and sufficient set of permissions, is widely regarded as a best practice. However, the discovery of least privilege can be an error-prone, burdensome task for developers. This is partially because the execution of an action on the cloud sometimes implicitly requires permissions of other services, and since these are difficult to recognize without actual execution, developers are forced to manually iterate the execution of an action and the modification of permissions. In this work, we present an approach to automatically discover least privilege. Our approach utilizes a test suite, which represents what a system should achieve on the cloud, as an indicator of least privilege, and it iterates testing on the cloud and (re)configuration of permissions on the basis of the test results. We also propose a stepwise filtering technique that utilizes the co-occurrences of cloud services/actions and clustering-based pruning to efficiently rule out unnecessary permissions. Our experiments demonstrate that this filtering reduces the number of iterations compared to naive approaches, which directly affects the time and cost to discover least privilege. Moreover, three case studies show that our approach can identify least privilege on Amazon Web Services within a practical time.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Anhänge
Nur mit Berechtigung zugänglich
Literatur
Zurück zum Zitat Binz, T., Breitenbücher, U., Kopp, O., et al.: TOSCA: Portable Automated Deployment and Management of Cloud Applications, pp. 527–549. Springer, New York (2014) Binz, T., Breitenbücher, U., Kopp, O., et al.: TOSCA: Portable Automated Deployment and Management of Cloud Applications, pp. 527–549. Springer, New York (2014)
Zurück zum Zitat Burgess, M., College, O.: Cfengine: a site configuration engine. In: USENIX Computing Systems (1995) Burgess, M., College, O.: Cfengine: a site configuration engine. In: USENIX Computing Systems (1995)
Zurück zum Zitat Guerriero, M., Garriga, M., Tamburri, D.A., et al.: Adoption, support, and challenges of infrastructure-as-code: insights from industry. In: Proceedings of the 35th IEEE International Conference on Software Maintenance and Evolution, ICSME 2019 (2019). https://doi.org/10.1109/ICSME.2019.00092 Guerriero, M., Garriga, M., Tamburri, D.A., et al.: Adoption, support, and challenges of infrastructure-as-code: insights from industry. In: Proceedings of the 35th IEEE International Conference on Software Maintenance and Evolution, ICSME 2019 (2019). https://​doi.​org/​10.​1109/​ICSME.​2019.​00092
Zurück zum Zitat Hanappi, O., Hummer, W., Dustdar, S.: Asserting reliable convergence for configuration management scripts. In: Proceedings of the ACM SIGPLAN International Conference on Object-Oriented Programming, Systems, Languages, and Applications, OOPSLA 2016 (2016). https://doi.org/10.1145/2983990.2984000 Hanappi, O., Hummer, W., Dustdar, S.: Asserting reliable convergence for configuration management scripts. In: Proceedings of the ACM SIGPLAN International Conference on Object-Oriented Programming, Systems, Languages, and Applications, OOPSLA 2016 (2016). https://​doi.​org/​10.​1145/​2983990.​2984000
Zurück zum Zitat Kanies, L.: Puppet: next-generation configuration management. Unisex Mag. 31(1), 19–25 (2006) Kanies, L.: Puppet: next-generation configuration management. Unisex Mag. 31(1), 19–25 (2006)
Zurück zum Zitat Morris, K.: Infrastructure as Code, 2nd edn. O’Reilly Media, Sebastopol (2020) Morris, K.: Infrastructure as Code, 2nd edn. O’Reilly Media, Sebastopol (2020)
Zurück zum Zitat Nelson-Smith, S.: Test-Driven Infrastructure with Chef, 2nd edn. O’Reilly Media Inc., Sebastopol (2013) Nelson-Smith, S.: Test-Driven Infrastructure with Chef, 2nd edn. O’Reilly Media Inc., Sebastopol (2013)
Zurück zum Zitat OASIS Standard. Topology and orchestration specification for cloud applications version 1.0 (2013) OASIS Standard. Topology and orchestration specification for cloud applications version 1.0 (2013)
Zurück zum Zitat Saavedra, N., Ferreira, J.F.: Glitch: automated polyglot security smell detection in infrastructure as code. In: Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering, ASE 2022 (2022) Saavedra, N., Ferreira, J.F.: Glitch: automated polyglot security smell detection in infrastructure as code. In: Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering, ASE 2022 (2022)
Zurück zum Zitat Sandobalín, J., Insfran, E., Abrahão, S.: On the effectiveness of tools to support infrastructure as code: model-driven versus code-centric. IEEE Access 8, 17734–17761 (2020)CrossRef Sandobalín, J., Insfran, E., Abrahão, S.: On the effectiveness of tools to support infrastructure as code: model-driven versus code-centric. IEEE Access 8, 17734–17761 (2020)CrossRef
Zurück zum Zitat Strandberg, P.E., Sundmark, D., Afzal, W., et al.: Experience report: automated system level regression test prioritization using multiple factors. In: Proceedings of the IEEE 27th International Symposium on Software Reliability Engineering, ISSRE 2016 (2016). https://doi.org/10.1109/ISSRE.2016.23 Strandberg, P.E., Sundmark, D., Afzal, W., et al.: Experience report: automated system level regression test prioritization using multiple factors. In: Proceedings of the IEEE 27th International Symposium on Software Reliability Engineering, ISSRE 2016 (2016). https://​doi.​org/​10.​1109/​ISSRE.​2016.​23
Zurück zum Zitat Wettinger, J., Binz, T., Breitenbücher, U., et al.: Unified invocation of scripts and services for provisioning, deployment, and management of cloud applications based on TOSCA. In: Proceedings of the 4th International Conference on Cloud Computing and Services Science, CLOSER 2014 (2014). https://doi.org/10.5220/0004859005590568 Wettinger, J., Binz, T., Breitenbücher, U., et al.: Unified invocation of scripts and services for provisioning, deployment, and management of cloud applications based on TOSCA. In: Proceedings of the 4th International Conference on Cloud Computing and Services Science, CLOSER 2014 (2014). https://​doi.​org/​10.​5220/​0004859005590568​
Zurück zum Zitat Zhai, G., Zeng, J., Ma, M., et al.: Implementation and automatic testing for security enhancement of linux based on least privilege. In: Proceedings of the 2008 International Conference on Information Security and Assurance, ISA 2008 (2008). https://doi.org/10.1109/ISA.2008.61 Zhai, G., Zeng, J., Ma, M., et al.: Implementation and automatic testing for security enhancement of linux based on least privilege. In: Proceedings of the 2008 International Conference on Information Security and Assurance, ISA 2008 (2008). https://​doi.​org/​10.​1109/​ISA.​2008.​61
Metadaten
Titel
Test-suite-guided discovery of least privilege for cloud infrastructure as code
verfasst von
Ryo Shimizu
Yuna Nunomura
Hideyuki Kanuka
Publikationsdatum
01.05.2024
Verlag
Springer US
Erschienen in
Automated Software Engineering / Ausgabe 1/2024
Print ISSN: 0928-8910
Elektronische ISSN: 1573-7535
DOI
https://doi.org/10.1007/s10515-024-00420-5

Weitere Artikel der Ausgabe 1/2024

Automated Software Engineering 1/2024 Zur Ausgabe

Premium Partner