Walter D. Potter

72 papers A 3B 4C 11Misc 8Journal 13Unranked 32
YearRankTypeTitle / Venue / Authors
2016 C conf
IEA/AIE
Cameron R. Hamilton, Frederick Maier, Walter D. Potter
2015 C conf
IEA/AIE
Seth J. Meyerson, Thomas E. Drapela, William E. Whiteside, Walter D. Potter
2014 conf
CIES
Seth J. Meyerson, William E. Whiteside, Thomas E. Drapela, Walter D. Potter
2013 J jnl
Appl. Soft Comput.
Siva Venkadesh, Gerrit Hoogenboom, Walter D. Potter, Ronald W. McClendon
2013 J jnl
Appl. Intell.
Karthik Nadig, Walter D. Potter, Gerrit Hoogenboom, Ronald W. McClendon
2012 C conf
IEA/AIE
Karthik Nadig, William M. Potter, Walter D. Potter
2012 C conf
IV
Stefaan Van Liefferinge, Rebecca A. Smith, Tyler Carlson, Elijah Holt, Michael A. Covington, Walter D. Potter
2011 conf
IEA/AIE (2)
Y. Qu, S. Pandhiti, Kalesha S. Bullard, Walter D. Potter, K. F. Fezer
2011 conf
IEA/AIE (2)
P. W. Brooks, Walter D. Potter
2011 conf
LaTeCH@ACL
Charles Hollingsworth, Stefaan Van Liefferinge, Rebecca A. Smith, Michael A. Covington, Walter D. Potter
2011 B conf
ICALT
S. A. Bogle, Walter D. Potter
2010 conf
IEA/AIE (3)
J. D. Griffin, Walter D. Potter
2010 conf
ACM Southeast Regional Conference
Kyle J. Krafka, Walter D. Potter, T. R. Horton
2009 conf
GEM
A. Palani, Walter D. Potter, Eric Drucker
2009 ch.
Natural Intelligence for Scheduling, Planning and Packing Problems
Walter D. Potter, Eric Drucker, Pete Bettinger, Frederick Maier, Max Martin, D. Luper, M. Watkinson, G. Handy, C. Hayes
2008 A conf
GECCO
Sergey V. Fogelson, Walter D. Potter
2008 Misc conf
IC-AI
Hajime Uchiyama, Walter D. Potter
2008 conf
CGVR
Bradley J. Wimpey, Walter D. Potter
2008 conf
ACM Southeast Regional Conference
Bradley J. Wimpey, Walter D. Potter
2008 conf
ACM Southeast Regional Conference
Hajime Uchiyama, Michael A. Covington, Walter D. Potter
2007 conf
GEM
Sergey V. Fogelson, Walter D. Potter
2007 conf
Artificial Intelligence and Pattern Recognition
Sergey V. Fogelson, Walter D. Potter
2007 conf
GEM
Daniel R. Tuohy, Walter D. Potter, Darren A. Casella
2006 conf
ICMC
Daniel R. Tuohy, Walter D. Potter
2006 B conf
IEEE Congress on Evolutionary Computation
Daniel R. Tuohy, Walter D. Potter
2006 C conf
IEA/AIE
Daniel R. Tuohy, Walter D. Potter
2006 J jnl
IEEE Trans. Neural Networks
N. K. Roy, Walter D. Potter, D. P. Landau
2005 conf
ICMC
Daniel R. Tuohy, Walter D. Potter
2005 C conf
IEA/AIE
Hajime Uchiyama, Leonidas Deligiannidis, Walter D. Potter, Bradley J. Wimpey, D. H. Barnhard, R. Deng, S. Radhakrishnan
2005 conf
CPSN
Walter D. Potter, Leonidas Deligiannidis, Bradley J. Wimpey, Hajime Uchiyama, R. Deng, S. Radhakrishnan, D. H. Barnhard
2005 Misc conf
IC-AI
Daniel DeJuan, Vineet Khosla, Walter D. Potter, Blair Dorminey, Donald Nute
2005 Misc conf
FLAIRS
Darren A. Casella, Walter D. Potter
2005 B conf
Congress on Evolutionary Computation
Darren A. Casella, Walter D. Potter
2004 conf
ACM Southeast Regional Conference
Yuki Ono, Hajime Uchiyama, Walter D. Potter
2004 J jnl
Appl. Intell.
N. K. Roy, Walter D. Potter, D. P. Landau
2004 conf
ACM Southeast Regional Conference
J. T. McClain, Bradley J. Wimpey, D. H. Barnhard, Walter D. Potter
2004 conf
METMBS
Ning Suo, Khaled Rasheed, Walter D. Potter, Dennis N. Aron
2004 J jnl
Environ. Model. Softw.
Donald Nute, Walter D. Potter, Frederick Maier, Jin Wang, Mark J. Twery, H. Michael Rauscher, Peter Knopp, Scott Thomasma, Mayukh Dass, Hajime Uchiyama, Astrid Glende
2004 Misc conf
IC-AI
D. H. Barnhard, J. T. McClain, Bradley J. Wimpey, Walter D. Potter
2004 Misc conf
IC-AI
J. N. Bishop, Walter D. Potter
2003 C conf
IEA/AIE
Mayukh Dass, James Cannady, Walter D. Potter
2003 Misc conf
IKE
Frederick Maier, Donald Nute, Walter D. Potter, Jin Wang, Mayukh Dass, Hajime Uchiyama, Mark J. Twery, Peter Knopp, Scott Thomasma, H. Michael Rauscher
2003 Misc conf
FLAIRS
Mayukh Dass, James Cannady, Walter D. Potter
2002 A conf
GECCO
L. Wu, Walter D. Potter, Khaled Rasheed, H. Thistle, J. Ghent, D. Twardus, M. Teske
2002 conf
OTM
Frederick Maier, Donald Nute, Walter D. Potter, Jin Wang, Mark J. Twery, H. Michael Rauscher, Peter Knopp, Scott Thomasma, Mayukh Dass, Hajime Uchiyama
2002 conf
IIP
Walter D. Potter, Donald Nute, Jin Wang, Frederick Maier, Mark J. Twery, H. Michael Rauscher, Peter Knopp, Scott Thomasma, Mayukh Dass, Hajime Uchiyama
2000 C conf
IEA/AIE
Walter D. Potter, Wanying Bi, D. Twardus, H. Thistle, Mark J. Twery, J. Ghent, M. Teske
2000 C conf
IEA/AIE
Walter D. Potter, X. Deng, S. Somasekar, S. Liu, H. Michael Rauscher, Scott Thomasma
2000 J jnl
Appl. Intell.
C. E. Henderson, Walter D. Potter, Ronald W. McClendon, Gerrit Hoogenboom
1999 B conf
CBMS
Besim Atalay, Walter D. Potter, D. Haburchak
1998 conf
IEA/AIE (Vol. 1)
Suchendra M. Bhandarkar, Jögg Zeppen, Walter D. Potter
1998 Misc conf
FLAIRS
C. E. Henderson, Walter D. Potter, Ronald W. McClendon, Gerrit Hoogenboom
1998 conf
IEA/AIE (Vol. 2)
J. H. Hamlin, Walter D. Potter
1998 conf
IEA/AIE (Vol. 1)
C. E. Henderson, Walter D. Potter, Ronald W. McClendon, Gerrit Hoogenboom
1997 conf
HICSS (5)
Walter D. Potter
1996 C conf
IEA/AIE
A. Calle, Walter D. Potter, Suchendra M. Bhandarkar
1994 J jnl
Pattern Recognit.
Suchendra M. Bhandarkar, Yiqing Zhang, Walter D. Potter
1994 C conf
IEA/AIE
Walter D. Potter, Robert W. Robinson, John A. Miller, Krys J. Kochut, D. Z. Redys
1993 J jnl
IEEE Trans. Syst. Man Cybern.
John A. Miller, Walter D. Potter, Ravi V. Gandham, Chito N. Lapena
1993 A conf
ISMB
Krys J. Kochut, Jonathan P. Arnold, John A. Miller, Walter D. Potter
1992 J jnl
Ann. Oper. Res.
Walter D. Potter, Terry Anthony Byrd, John A. Miller, Krys J. Kochut
1992 J jnl
Appl. Intell.
Walter D. Potter, John A. Miller, Bruce E. Tonn, Ravi V. Gandham, Chito N. Lapena
1991 J jnl
Int. J. Comput. Simul.
John A. Miller, Krys J. Kochut, Walter D. Potter, Ender Ucar, Ali Keskin
1991 conf
TOOLS (5)
Krys J. Kochut, John A. Miller, Walter D. Potter, Anthony Wright
1990 conf
ACM Southeast Regional Conference
Chito N. Lapena, Walter D. Potter
1990 conf
IEA/AIE (Vol. 1)
Walter D. Potter, Bruce E. Tonn, Mike R. Hilliard, Gunar E. Liepins, R. T. Goeltz, S. L. Purucker
1990 conf
ACM Southeast Regional Conference
Walter D. Potter, A. D. Wright, A. M. Morton, W. C. Kessler
1990 conf
Annual Simulation Symposium
John A. Miller, Walter D. Potter, Krys J. Kochut, Orville R. Weyrich Jr.
1989 J jnl
Data Knowl. Eng.
Walter D. Potter, Robert P. Trueblood, Caroline M. Eastman
1988 J jnl
Computer
Walter D. Potter, Robert P. Trueblood
1988 conf
DS-3
Walter D. Potter, Donald Nute
1986 conf
DS-2
Walter D. Potter, Larry Kerschberg
redb/extractors/elf_extractors/elf_imports.py
← Index redb/extractors/elf_extractors/elf_imports.py python
import inspect
from datetime import datetime, timezone
from typing import Any, List, Set

from elftools.elf.elffile import ELFFile
from elftools.common.exceptions import ELFError

from redb.extractors.enum import Tag
from redb.extractors.elf_extractor import ELFExtractor
from redb.models.dataclasses import ELFImport


class ELFImportExtractor(ELFExtractor):

    def __init__(
        self,
        filepath,
        log,
        exporters=None,
        index_prefix=None,
        elastic_index=None,
        known_benign=False,
        known_malicious=False,
        elf=None,
    ):
        super().__init__(
            filepath,
            log,
            exporters,
            index_prefix,
            elastic_index,
            known_benign,
            known_malicious,
            elf,
        )
        self.elf_imports = None
        self.elastic_index = self.index_prefix + "-elf_imports"
        self.log.debug(inspect.currentframe().f_code.co_name)

    def _get_import_libraries(self, elf) -> List[str]:
        """Extract imported libraries from dynamic section."""
        libraries = []

        try:
            # Get the dynamic section
            dynamic_section = elf.get_section_by_name('.dynamic')
            if not dynamic_section:
                return libraries

            # Extract DT_NEEDED entries (required libraries)
            for tag in dynamic_section.iter_tags():
                if tag.entry.d_tag == 'DT_NEEDED':
                    libraries.append(tag.needed)

        except Exception as e:
            self.log.error(f"Error extracting import libraries: {e}")

        return libraries

    def _get_imported_functions_from_symbols(self, elf) -> Set[str]:
        """Extract imported functions from dynamic symbol table."""
        imported_functions = set()

        try:
            # Get the dynamic symbol table
            dynsym_section = elf.get_section_by_name('.dynsym')
            if not dynsym_section or not hasattr(dynsym_section, 'iter_symbols'):
                return imported_functions

            # Look for undefined symbols (imports)
            for symbol in dynsym_section.iter_symbols():
                # Check if symbol is undefined (imported)
                if (symbol.entry.get('st_shndx', 0) == 'SHN_UNDEF' and
                    symbol.name and
                    symbol.entry.get('st_info', {}).get('bind') in ['STB_GLOBAL', 'STB_WEAK']):
                    imported_functions.add(symbol.name)

        except Exception as e:
            self.log.error(f"Error extracting imported functions from symbols: {e}")

        return imported_functions

    def _get_imported_functions_from_relocations(self, elf) -> Set[str]:
        """Extract imported functions from relocation sections."""
        imported_functions = set()

        try:
            # Look through relocation sections
            for section in elf.iter_sections():
                if hasattr(section, 'iter_relocations'):
                    try:
                        for relocation in section.iter_relocations():
                            # Get symbol associated with relocation
                            if hasattr(relocation, 'symbol') and relocation.symbol:
                                symbol_name = relocation.symbol.name
                                if symbol_name:
                                    imported_functions.add(symbol_name)
                    except Exception as e:
                        self.log.debug(f"Could not process relocations in section {section.name}: {e}")

        except Exception as e:
            self.log.error(f"Error extracting imported functions from relocations: {e}")

        return imported_functions

    def _get_plt_functions(self, elf) -> Set[str]:
        """Extract functions from PLT (Procedure Linkage Table) sections."""
        plt_functions = set()

        try:
            # Look for PLT-related sections
            plt_sections = ['.plt', '.plt.got', '.plt.sec']

            for section_name in plt_sections:
                section = elf.get_section_by_name(section_name)
                if section:
                    # PLT functions are typically associated with relocations
                    # We'll get them from the relocation analysis
                    pass

        except Exception as e:
            self.log.error(f"Error extracting PLT functions: {e}")

        return plt_functions

    def tag(self):
        return Tag.ELF_IMPORTS.value if hasattr(Tag, 'ELF_IMPORTS') else "elf_imports"

    def extract(self):
        try:
            self.log.debug(inspect.currentframe().f_code.co_name)

            def extract_data(elf):
                # Extract import libraries
                import_libraries = self._get_import_libraries(elf)

                # Extract imported functions from multiple sources
                imported_functions = set()

                # From dynamic symbols
                symbol_imports = self._get_imported_functions_from_symbols(elf)
                imported_functions.update(symbol_imports)

                # From relocations
                relocation_imports = self._get_imported_functions_from_relocations(elf)
                imported_functions.update(relocation_imports)

                # From PLT
                plt_imports = self._get_plt_functions(elf)
                imported_functions.update(plt_imports)

                # Convert to sorted lists for consistent output
                import_libraries_list = sorted(list(set(import_libraries)))
                import_functions_list = sorted(list(imported_functions))

                # Return ELFImport dataclass
                return ELFImport(
                    elf_imports_total=len(import_functions_list),
                    elf_import_libraries=import_libraries_list,
                    elf_import_functions=import_functions_list,
                )

            if not self._is_elf_file():
                return None

            result = self._with_elf_file(extract_data)
            if result is None:
                return None

            self.elf_imports = result
            return self.elf_imports

        except Exception as e:
            self.log.error(f"Error extracting ELF imports {self.hash.sha256}: {e}")
            return None

    def prepare_export_data(self, exporter_type: str) -> Any:
        self.log.debug(inspect.currentframe().f_code.co_name)

        if exporter_type == "ElasticsearchExporter":
            return self.elf_imports
        elif exporter_type == "ClickHouseExporter":
            try:
                if not self.elf_imports:
                    return None

                # Prepare data array
                data = [[
                    self.sha256,
                    self.md5,
                    self.sha1,
                    self.elf_imports.elf_imports_total,
                    self.elf_imports.elf_import_libraries,
                    self.elf_imports.elf_import_functions,
                    datetime.now(timezone.utc)
                ]]

                column_names = [
                    'sha256', 'md5', 'sha1',
                    'elf_imports_total',
                    'elf_import_libraries',
                    'elf_import_functions',
                    'analysis_date'
                ]

                column_type_names = [
                    'FixedString(64)', 'FixedString(32)', 'FixedString(40)',
                    'UInt32',
                    'Array(LowCardinality(String))',
                    'Array(LowCardinality(String))',
                    'DateTime64(3, \'UTC\')'
                ]

                if not data:
                    return None

                return (data, column_names, column_type_names)

            except Exception as e:
                self.log.error(f"Error preparing export data: {e}")
                raise

    def get_clickhouse_table(self) -> str:
        return "redb_elf_imports"